This commit is contained in:
2023-09-15 12:54:15 +02:00
parent 8a76d7e7f8
commit 151b62bb13
2 changed files with 12 additions and 1 deletions

View File

@@ -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)"

View File

@@ -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
}