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
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue