zsh
This commit is contained in:
parent
c758c2bbed
commit
d6382f1413
5 changed files with 21 additions and 34 deletions
|
|
@ -22,10 +22,11 @@ alias lla='ls -la --color'
|
|||
alias llh='ls -lh --color'
|
||||
alias llah='ls -lah --color'
|
||||
|
||||
alias su='us'
|
||||
|
||||
alias n='nnn -diUxe'
|
||||
|
||||
alias ssh='s'
|
||||
alias su='us'
|
||||
|
||||
alias vi=vim
|
||||
|
||||
alias xterm=$TERMINAL
|
||||
|
|
|
|||
|
|
@ -14,12 +14,12 @@ us() {
|
|||
tmux rename-window "su(${target_user})"
|
||||
|
||||
# Use "command su" to bypass the function if it exists
|
||||
command su "$@"
|
||||
command "$SU" "$@"
|
||||
|
||||
# Restore original window name after exit
|
||||
tmux rename-window "$original_name"
|
||||
else
|
||||
command su "$@"
|
||||
command "$SU" "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue