From 81b3ecaddb5be7d801169715d7af9f498a0c4c37 Mon Sep 17 00:00:00 2001 From: Luca Bilke Date: Tue, 19 Jul 2022 15:27:12 +0200 Subject: [PATCH] conditionally create ssh alias for kitty --- .config/shell/aliasrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index 651efc94e..b78a40ff6 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -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"