moerx rename to murx.

This commit is contained in:
Johannes Findeisen 2026-11-17 03:13:23 +01:00
commit ebd308c9a4
2 changed files with 9 additions and 9 deletions

View file

@ -28,7 +28,7 @@ alias lla='ls --color -la'
alias llh='ls --color -lh'
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'

View file

@ -1,6 +1,6 @@
if [[ -o interactive && ( -n $SSH_CONNECTION || $TERM == screen-256color ) ]]; then
autoload -Uz add-zsh-hook
moerx_ssh_title() {
murx_ssh_title() {
local program=${1:t}
printf '\033]2;%s:%s\007' "${HOST%%.*}" "$program"
local directory=$PWD
@ -9,16 +9,16 @@ if [[ -o interactive && ( -n $SSH_CONNECTION || $TERM == screen-256color ) ]]; t
elif [[ $directory == "$HOME/"* ]]; then
directory="~/${directory#"$HOME/"}"
fi
printf '\033]777;moerx-cwd;%s\007' "$directory"
printf '\033]777;moerx-root;%s\007' "$((EUID == 0))"
printf '\033]777;murx-cwd;%s\007' "$directory"
printf '\033]777;murx-root;%s\007' "$((EUID == 0))"
}
moerx_ssh_preexec() {
murx_ssh_preexec() {
local -a words
words=(${(z)1})
moerx_ssh_title "${(Q)words[1]}"
murx_ssh_title "${(Q)words[1]}"
}
moerx_ssh_precmd() { moerx_ssh_title zsh; }
add-zsh-hook preexec moerx_ssh_preexec
add-zsh-hook precmd moerx_ssh_precmd
murx_ssh_precmd() { murx_ssh_title zsh; }
add-zsh-hook preexec murx_ssh_preexec
add-zsh-hook precmd murx_ssh_precmd
fi