1
0
Fork 0

conditionally create ssh alias for kitty

This commit is contained in:
Luca Bilke 2022-07-19 15:27:12 +02:00
parent 5580c5f8dc
commit 81b3ecaddb
1 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,10 @@
# Use $XINITRC variable if file exists.
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# fix ssh if using kitty as terminal
[ "$TERM" = "xterm-kitty" ] && alias ssh="kitty +kitten ssh"
# sudo not required for some system commands
for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
alias $command="sudo $command"
@ -51,4 +55,3 @@ alias \
weath="less -S ${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" \
remvirt="virt-manager -c 'qemu+ssh://luca@192.168.178.200/system'" \
vim="lvim" \
ssh="kitty +kitten ssh"