moerx rename to murx.
This commit is contained in:
parent
549f76fb96
commit
ebd308c9a4
2 changed files with 9 additions and 9 deletions
|
|
@ -28,7 +28,7 @@ alias lla='ls --color -la'
|
||||||
alias llh='ls --color -lh'
|
alias llh='ls --color -lh'
|
||||||
alias llah='ls --color -lah'
|
alias llah='ls --color -lah'
|
||||||
|
|
||||||
alias m='moerx --prefix x --status bottom --no-moerx'
|
alias m='murx --prefix x --status bottom --no-murx'
|
||||||
|
|
||||||
alias n='nnn -diUxe'
|
alias n='nnn -diUxe'
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
if [[ -o interactive && ( -n $SSH_CONNECTION || $TERM == screen-256color ) ]]; then
|
if [[ -o interactive && ( -n $SSH_CONNECTION || $TERM == screen-256color ) ]]; then
|
||||||
autoload -Uz add-zsh-hook
|
autoload -Uz add-zsh-hook
|
||||||
moerx_ssh_title() {
|
murx_ssh_title() {
|
||||||
local program=${1:t}
|
local program=${1:t}
|
||||||
printf '\033]2;%s:%s\007' "${HOST%%.*}" "$program"
|
printf '\033]2;%s:%s\007' "${HOST%%.*}" "$program"
|
||||||
local directory=$PWD
|
local directory=$PWD
|
||||||
|
|
@ -9,16 +9,16 @@ if [[ -o interactive && ( -n $SSH_CONNECTION || $TERM == screen-256color ) ]]; t
|
||||||
elif [[ $directory == "$HOME/"* ]]; then
|
elif [[ $directory == "$HOME/"* ]]; then
|
||||||
directory="~/${directory#"$HOME/"}"
|
directory="~/${directory#"$HOME/"}"
|
||||||
fi
|
fi
|
||||||
printf '\033]777;moerx-cwd;%s\007' "$directory"
|
printf '\033]777;murx-cwd;%s\007' "$directory"
|
||||||
printf '\033]777;moerx-root;%s\007' "$((EUID == 0))"
|
printf '\033]777;murx-root;%s\007' "$((EUID == 0))"
|
||||||
}
|
}
|
||||||
moerx_ssh_preexec() {
|
murx_ssh_preexec() {
|
||||||
local -a words
|
local -a words
|
||||||
words=(${(z)1})
|
words=(${(z)1})
|
||||||
moerx_ssh_title "${(Q)words[1]}"
|
murx_ssh_title "${(Q)words[1]}"
|
||||||
}
|
}
|
||||||
moerx_ssh_precmd() { moerx_ssh_title zsh; }
|
murx_ssh_precmd() { murx_ssh_title zsh; }
|
||||||
add-zsh-hook preexec moerx_ssh_preexec
|
add-zsh-hook preexec murx_ssh_preexec
|
||||||
add-zsh-hook precmd moerx_ssh_precmd
|
add-zsh-hook precmd murx_ssh_precmd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue