Fixed vim alias.
- Only set vim alias if MacVim is installed (using homebrew or not)
This commit is contained in:
parent
745667a6c2
commit
5cd34a1b64
@ -32,8 +32,10 @@ alias ae='vi $yadr/zsh/aliases.zsh' #alias edit
|
|||||||
alias ar='source $yadr/zsh/aliases.zsh' #alias reload
|
alias ar='source $yadr/zsh/aliases.zsh' #alias reload
|
||||||
|
|
||||||
# vim using
|
# vim using
|
||||||
if [ "$(command -v brew)" ]; then
|
mvim --version > /dev/null 2>&1
|
||||||
alias vim=$(brew ls macvim | grep Contents/MacOS/Vim)
|
MACVIM_INSTALLED=$?
|
||||||
|
if [ $MACVIM_INSTALLED -eq 0 ]; then
|
||||||
|
alias vim="mvim -v"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# vimrc editing
|
# vimrc editing
|
||||||
|
Loading…
Reference in New Issue
Block a user