Push improvements form the PQB work
This commit is contained in:
parent
f3323b159b
commit
1e3c60630e
68 changed files with 409 additions and 219 deletions
|
@ -1,17 +1,6 @@
|
|||
PREFERED_VI=$(which-command nvim vim | head -1)
|
||||
if [[ -z "$PREFERED_VI" ]]; then
|
||||
PREFERED_VI=$(which-command vi | head -1)
|
||||
MY_VI="$(type -fP my_vi)"
|
||||
|
||||
if [[ -z "$PREFERED_VI" ]]; then
|
||||
alias my_vi='eval $EDITOR '
|
||||
else
|
||||
alias my_vi="$PREFERED_VI"
|
||||
fi
|
||||
else
|
||||
alias my_vi="$PREFERED_VI -p"
|
||||
fi
|
||||
|
||||
export DOOMROOT="$HOME/.config/_my.emacs/doom"
|
||||
port DOOMROOT="$HOME/.config/_my.emacs/doom"
|
||||
[[ -x $DOOMROOT/emacs.d/bin/doom ]] && function doom() {
|
||||
export EMACSDIR="$DOOMROOT/emacs.d"
|
||||
export DOOMDIR="$DOOMROOT/config"
|
||||
|
@ -23,17 +12,18 @@ export DOOMROOT="$HOME/.config/_my.emacs/doom"
|
|||
} || unset DOOMROOT
|
||||
|
||||
if [[ -r "$HOME/.config/_my.emacs/spacemacs/emacs.d/init.el" \
|
||||
&& -n "$(which-command emacsclient)" \
|
||||
&& -n "$(which-command emacs)" \
|
||||
&& -n "$(which-command edit-with-spacemacs)" \
|
||||
]]; then
|
||||
alias my_editor='edit-with-spacemacs'
|
||||
&& -n "$(which-command emacsclient)" \
|
||||
&& -n "$(which-command emacs)" \
|
||||
&& -n "$(which-command edit-with-spacemacs)" \
|
||||
]]; then
|
||||
alias my_editor='edit-with-spacemacs'
|
||||
else
|
||||
alias my_editor='my_vi'
|
||||
alias my_editor="${MY_VI} "
|
||||
fi
|
||||
alias nvim="my_vi"
|
||||
alias vim="my_vi"
|
||||
alias vi="my_vi"
|
||||
|
||||
alias nvim="${MY_VI} "
|
||||
alias vim="${MY_VI} "
|
||||
alias vi="${MY_VI} "
|
||||
|
||||
alias ed="my_editor"
|
||||
alias edit="my_editor"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue