mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
ssh kitten: Allow to configure HOME environment variable
Useful if the user does not have a home directory or the directory is not writable.
This commit is contained in:
parent
b944cdddeb
commit
5c02c370d4
3 changed files with 27 additions and 4 deletions
|
|
@ -62,6 +62,8 @@ dcs_to_kitty() { printf "\033P@kitty-$1|%s\033\134" "$(printf "%s" "$2" | base64
|
|||
debug() { dcs_to_kitty "print" "debug: $1"; }
|
||||
echo_via_kitty() { dcs_to_kitty "echo" "$1"; }
|
||||
|
||||
# If $HOME is configured set it here
|
||||
EXPORT_HOME_CMD
|
||||
# ensure $HOME is set
|
||||
[ -z "$HOME" ] && HOME=~
|
||||
# ensure $USER is set
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue