Some .zsh updates.
This commit is contained in:
parent
a1d708e18b
commit
ee2bfa3922
2 changed files with 8 additions and 1 deletions
|
|
@ -3,6 +3,13 @@ if [[ -n $SSH_CONNECTION ]]; then
|
|||
moerx_ssh_title() {
|
||||
local program=${1:t}
|
||||
printf '\033]2;%s:%s\007' "${HOST%%.*}" "$program"
|
||||
local directory=$PWD
|
||||
if [[ $directory == "$HOME" ]]; then
|
||||
directory='~'
|
||||
elif [[ $directory == "$HOME/"* ]]; then
|
||||
directory="~/${directory#"$HOME/"}"
|
||||
fi
|
||||
printf '\033]777;moerx-cwd;%s\007' "$directory"
|
||||
}
|
||||
moerx_ssh_preexec() {
|
||||
local -a words
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue