2022-05-26 13:06:21 +00:00
|
|
|
alias sudo="/usr/bin/sudo "
|
2022-05-29 00:08:37 +00:00
|
|
|
PREFERED_VI=$(type -fP nvim vim | head -1)
|
2022-05-29 01:46:21 +00:00
|
|
|
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
|
2022-05-29 00:08:37 +00:00
|
|
|
alias nvim="vi_editor "
|
|
|
|
alias vim="vi_editor "
|
|
|
|
alias vi="vi_editor "
|
2022-05-23 03:34:11 +00:00
|
|
|
|
2022-05-28 21:54:45 +00:00
|
|
|
alias lessr="less --raw-control-chars "
|
|
|
|
|
2022-05-26 13:06:21 +00:00
|
|
|
alias ed="nvim "
|
|
|
|
|
2022-05-28 21:54:45 +00:00
|
|
|
alias sz-edshrc="ed ~/.sz.shrc.d ; exec $SHELL"
|