From 1839a100f6424afbd03be94d42ef353b21324ca9 Mon Sep 17 00:00:00 2001 From: Lucas Date: Sun, 23 Aug 2020 14:27:26 +0000 Subject: [PATCH] shrc: replace vi with nvi --- dotfiles/shrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/shrc b/dotfiles/shrc index fd1aed2..ff716b9 100644 --- a/dotfiles/shrc +++ b/dotfiles/shrc @@ -26,6 +26,10 @@ alias ll="ls -lF" alias mv="mv -i" alias p="$PAGER" +if command -v nvi >/dev/null 2>&1; then + alias vi=nvi +fi + if [ -d ~/local/man ]; then alias man="/usr/bin/man -m ~/local/man" fi