Editor streamlining

Oh-My-Posh prompt will not show up inside emacs shell.
`editor` is the alias I should get used to use instead of vi, adjusted
aliases so that editor will be used.
Enabled relevant layers in the spacemacs/init.el file
This commit is contained in:
Gal Szkolnik 2022-06-07 12:34:50 -04:00
parent 4197e32e72
commit 9b5c2c497c
3 changed files with 42 additions and 18 deletions

View file

@ -1,4 +1,4 @@
if [[ -n "$(type -fP oh-my-posh)" ]]; then
if [[ -n "$(type -fP oh-my-posh)" && -z "$INSIDE_EMACS" ]]; then
OHMYPOSH_CONFIG=''
[[ -r ~/.poshtheme.omp.json ]] && OHMYPOSH_CONFIG="~/.poshtheme.omp.json"
eval "$(oh-my-posh init bash --config $OHMYPOSH_CONFIG)"