Override ssh in kitty to set TERM=xterm-256color
This commit is contained in:
6
xonsh/kitty.xsh
Normal file
6
xonsh/kitty.xsh
Normal file
@@ -0,0 +1,6 @@
|
||||
if $TERM == "xterm-kitty":
|
||||
# Wrap ssh with environment variable because servers tend to deal poorly with kitty
|
||||
def xterm_ssh(args):
|
||||
$TERM="xterm-256color" ssh @(*args)
|
||||
|
||||
aliases["ssh"] = xterm_ssh
|
||||
@@ -27,7 +27,7 @@ $ALTERNATE_EDITOR = "vim"
|
||||
$TERMINAL = "kitty"
|
||||
|
||||
config_dir = p"~/.dotfiles/xonsh"
|
||||
xsh_modules = ["prompt", "nix", "path", "alias", "java", "linux", "python", "local", "docker"]
|
||||
xsh_modules = ["prompt", "nix", "path", "alias", "java", "linux", "python", "local", "docker", "kitty"]
|
||||
|
||||
for module in xsh_modules:
|
||||
_p = config_dir / f"{module}.xsh"
|
||||
|
||||
Reference in New Issue
Block a user