neovim alias only when neovim present

This commit is contained in:
Piotr Domański 2024-07-15 12:22:57 +02:00
parent 22ddfd3f76
commit cc7bf0ba40

View file

@ -11,13 +11,16 @@ alias e='exit'
alias grep='grep --color=auto' alias grep='grep --color=auto'
# ls # ls
alias ls='exa --icons -g' if [ -x "$(which exa)" ]; then
alias ls='exa --icons -g'
lst() { exa --no-icons --sort=time | head --lines=1; }
fi
alias ll='ls -lh' alias ll='ls -lh'
alias lls='ls -lhrs modified' alias lls='ls -lhrs modified'
alias la='ls -a' alias la='ls -a'
alias lla='ls -lha' alias lla='ls -lha'
alias l='ls' alias l='ls'
lst() { exa --no-icons --sort=time | head --lines=1; }
# python # python
alias py='python3' alias py='python3'
@ -26,7 +29,9 @@ alias pip='python3 -m pip'
alias ipy='ipython --TerminalInteractiveShell.editing_mode=vi --TerminalInteractiveShell.timeoutlen=0.2' alias ipy='ipython --TerminalInteractiveShell.editing_mode=vi --TerminalInteractiveShell.timeoutlen=0.2'
# vim # vim
alias vim='nvim' if [ -x "$(which nvim)" ]; then
alias vim='nvim'
fi
alias v='vim' alias v='vim'
alias vv='vifm' alias vv='vifm'