From ebd308c9a4fc2369071199a059450fb4841f0709 Mon Sep 17 00:00:00 2001 From: hanez Date: Tue, 17 Nov 2026 03:13:23 +0100 Subject: [PATCH] moerx rename to murx. --- .zsh/functions.d/aliases.sh | 2 +- .zsh/functions.d/{moerx.sh => murx.sh} | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) rename .zsh/functions.d/{moerx.sh => murx.sh} (58%) diff --git a/.zsh/functions.d/aliases.sh b/.zsh/functions.d/aliases.sh index 369f4004..17889a8c 100644 --- a/.zsh/functions.d/aliases.sh +++ b/.zsh/functions.d/aliases.sh @@ -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' diff --git a/.zsh/functions.d/moerx.sh b/.zsh/functions.d/murx.sh similarity index 58% rename from .zsh/functions.d/moerx.sh rename to .zsh/functions.d/murx.sh index 010d07a2..e2de258b 100644 --- a/.zsh/functions.d/moerx.sh +++ b/.zsh/functions.d/murx.sh @@ -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