fix(shell): use kitten ssh only inside a kitty window

This commit is contained in:
Rasyidan Akbar F. 2026-11-02 19:45:57 +07:00
commit d3cded376c
2 changed files with 15 additions and 4 deletions

View file

@ -27,8 +27,6 @@
];
};
shellAliases.ssh = "kitten ssh";
profileExtra = ''
if [[ -x /opt/homebrew/bin/brew ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
@ -54,8 +52,14 @@
$path
"$HOME/.lmstudio/bin"
)
export PATH
# kitten ssh refuses to run outside a kitty window.
if [ -n "$KITTY_WINDOW_ID" ]; then
alias ssh='kitten ssh'
fi
_load_global_secrets() {
local secret_dir="''${XDG_CONFIG_HOME:-$HOME/.config}/secrets/global-env"
local secret_file name value