
= Housekeeping, missing shrc.d and some changing in order. Most notably, split of editor aliases to separate file. + The missing .shrc.d files that were added: * keyboard mappings * bin.path - which includes cleanup * oh-my-posh compltions + edit-with-spacemacs ready for us, almost feature complete I still plan on making it resue existing frames is possible. + oh-my-posh config to include `systemctl is-system-running` to prompt when stat is not 'running' (mostly it will be shown when 'degraded')
21 lines
548 B
Text
21 lines
548 B
Text
if [[ -n "$(type -fP emacsclient)" && -n "$(type -fP emacs)" && -n "$(type -fP edit-with-spacemacs)" ]]; then
|
|
alias vi_editor='edit-with-spacemacs'
|
|
else
|
|
PREFERED_VI=$(type -fP nvim vim | head -1)
|
|
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
|
|
fi
|
|
alias nvim="vi_editor"
|
|
alias vim="vi_editor"
|
|
alias vi="vi_editor"
|
|
|
|
alias ed="vi_editor"
|