Major cleanup and testing added

+ added: bin/sz-doctor.sh shell script
+ fixed: chezmoi external configuration moved to _home
+ fixed: vi/vim/nvim aliases
+ fixed: bash_completion testsing
This commit is contained in:
Lockszmith 2022-05-29 01:46:21 +00:00
parent d916c3315d
commit 86608fbc83
5 changed files with 45 additions and 3 deletions

View file

@ -1,7 +1,16 @@
alias sudo="/usr/bin/sudo "
PREFERED_VI=$(type -fP nvim vim | head -1)
[[ -z "$PREFERED_VI" ]] && PREFERED_VI=$(type -fP vi | head -1) || alias vi_editor="$PREFERED_VI -p "
[[ -z "$PREFERED_VI" ]] && alias vi_editor='eval $EDITOR ' || alias vi_editor="$PREFERED_VI "
if [[ -z "$PREFERED_VI" ]]; then
PREFERED_VI=$(type -fP vi | head -1)
if [[ -z "$PREFERED_VI" ]]; then
alias vi_editor='eval $EDITOR '
else
alias vi_editor="$PREFERED_VI "
fi
else
alias vi_editor="$PREFERED_VI -p "
fi
alias nvim="vi_editor "
alias vim="vi_editor "
alias vi="vi_editor "