fix(shell): use kitten ssh only inside a kitty window
This commit is contained in:
parent
33a0ea1e55
commit
d3cded376c
2 changed files with 15 additions and 4 deletions
|
|
@ -40,8 +40,15 @@ in
|
|||
programs.nushell.enable = lib.mkDefault true;
|
||||
|
||||
programs.nushell.extraConfig = ''
|
||||
# Use kitten ssh for proper terminfo on remote hosts
|
||||
alias ssh = kitten ssh
|
||||
# Use kitten ssh for proper terminfo on remote hosts. It refuses to run
|
||||
# outside a kitty window.
|
||||
def --wrapped ssh [...args] {
|
||||
if "KITTY_WINDOW_ID" in $env {
|
||||
^kitten ssh ...$args
|
||||
} else {
|
||||
^ssh ...$args
|
||||
}
|
||||
}
|
||||
|
||||
# Dotfiles QA validation command
|
||||
def dotfiles-qa [] {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue