aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--shellrc.d/alias6
1 files changed, 5 insertions, 1 deletions
diff --git a/shellrc.d/alias b/shellrc.d/alias
index 2f88e80..c84c83a 100644
--- a/shellrc.d/alias
+++ b/shellrc.d/alias
@@ -11,7 +11,11 @@ alias cgdb='cgdb -q'
alias octave='octave-cli -q'
alias ssh='TERM="xterm-256color" ssh'
alias gst='git status'
-alias v='nvim'
+if command -v nvim >/dev/null; then
+ alias v='nvim'
+else
+ alias v='vim'
+fi
alias watch='watch -n 1 -c -t -d'
alias rej='find -name \*.rej'
alias orig='find -name \*.orig'