Prefer nvim over vim for EDITOR, don't use which
This commit is contained in:
12
zshrc
12
zshrc
@@ -68,7 +68,7 @@ autoload -U compinit
|
||||
compinit
|
||||
|
||||
# Add pip to the old completion engine if present
|
||||
if which pip &> /dev/null; then
|
||||
if command -v pip &> /dev/null; then
|
||||
function _pip_completion {
|
||||
local words cword
|
||||
read -Ac words
|
||||
@@ -178,9 +178,9 @@ frequent-directory Projects="$HOME/Projects"
|
||||
|
||||
# Aliases
|
||||
alias grep='grep --color=always'
|
||||
which cmake &> /dev/null && \
|
||||
command -v cmake &> /dev/null && \
|
||||
alias cninja='cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON'
|
||||
which ssh &> /dev/null && \
|
||||
command -v ssh &> /dev/null && \
|
||||
alias ssh='TERM=xterm-256color ssh'
|
||||
alias weather="curl wttr.in"
|
||||
alias cls="clear && printf '\e[3J'"
|
||||
@@ -188,15 +188,15 @@ alias cls="clear && printf '\e[3J'"
|
||||
case `uname` in
|
||||
Linux)
|
||||
alias ls='ls -F --color=auto'
|
||||
if which cgdb &> /dev/null; then
|
||||
if command -v cgdb &> /dev/null; then
|
||||
alias debug='cgdb --args'
|
||||
elif which gdb &> /dev/null; then
|
||||
elif command -v gdb &> /dev/null; then
|
||||
alias debug='gdb --args'
|
||||
fi
|
||||
;;
|
||||
Darwin)
|
||||
alias ls='ls -GFh'
|
||||
which lldb &> /dev/null && \
|
||||
command -v lldb &> /dev/null && \
|
||||
alias debug='lldb --'
|
||||
;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user