From 8694e74b2129d432728c0802bf1cfaf4895a6fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 28 Feb 2024 09:28:56 +0100 Subject: alias: support both vim as well as nvim Neovim doesn't compile on armv7l and this I will just use vim on embedded devices. --- shellrc.d/alias | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'shellrc.d/alias') 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' -- cgit v1.2.3