summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2021-07-16 01:11:09 +0000
committerbrian m. carlson <sandals@crustytoothpaste.net>2021-07-16 01:11:09 +0000
commit0fc246ae7ebfd594e8fd9c38ec55b7f0a1b56dd4 (patch)
tree321118211a8e4b644167b47894b1c98a7c37bbd6
parentad1ab7ed5f4d12289a4294ea1ad350779458d26c (diff)
zsh/zshrc: make gvim an alias to nvim-gtk if possiblenvim
If Neovim-GTK is available, make gvim an alias to it. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
-rw-r--r--zsh/zshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/zsh/zshrc b/zsh/zshrc
index 98f05a8..15c80ba 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -27,6 +27,11 @@ then
fi
unset vi
+if silent which nvim-gtk
+then
+ alias gvim=nvim-gtk
+fi
+
has_colors && alias grep='grep --color=auto'
alias rless='env -u LESSOPEN -u LESSCLOSE less'
alias loadenv='eval $(cat $HOME/.environment)'