Some .zsh updates.
This commit is contained in:
parent
a1d708e18b
commit
ee2bfa3922
2 changed files with 8 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ alias lla='ls --color -la'
|
|||
alias llh='ls --color -lh'
|
||||
alias llah='ls --color -lah'
|
||||
|
||||
alias m='moerx -p C-x'
|
||||
alias m='moerx --prefix x --status bottom'
|
||||
|
||||
alias n='nnn -diUxe'
|
||||
|
||||
|
|
|
|||
|
|
@ -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