updates
This commit is contained in:
@@ -7,5 +7,7 @@ elif [[ -x /usr/bin/vim ]] || [[ -x /opt/homebrew/bin/vim ]]; then
|
||||
export EDITOR=vim
|
||||
fi
|
||||
|
||||
export LESS=-FRSMKI
|
||||
export LESS="-FRSMKI"
|
||||
export SYSTEMD_LESS="FRSMKI"
|
||||
|
||||
[[ -x /usr/bin/dircolors ]] && eval "$(dircolors)"
|
||||
|
||||
@@ -22,6 +22,8 @@ setopt "PROMPT_SUBST"
|
||||
|
||||
alias :q="exit"
|
||||
alias ..="cd .."
|
||||
alias grep="grep --color=auto"
|
||||
|
||||
[[ -x /usr/bin/xdg-open ]] && alias open="xdg-open"
|
||||
|
||||
bindkey -e
|
||||
@@ -80,3 +82,10 @@ precmd() {
|
||||
preexec() {
|
||||
print -Pn "\e]0;%n@%m: $1\a"
|
||||
}
|
||||
|
||||
sudorun() {
|
||||
if builtin type -p sudo &> /dev/null; then
|
||||
sudo $(which "${1}") "${@:2}"
|
||||
fi
|
||||
return 1
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user