Refactored to make zsh
support as seamless as bash
This commit is contained in:
parent
42d570d673
commit
0c569629bc
13 changed files with 73 additions and 46 deletions
|
@ -1,4 +1,4 @@
|
|||
if [[ -n "$(type -fP oh-my-posh)" && -z "$INSIDE_EMACS" ]]; then
|
||||
if [[ -n "$(which-command oh-my-posh)" ]]; then
|
||||
OHMYPOSH_CONFIG=''
|
||||
[[ -r ~/.poshtheme.omp.json ]] && OHMYPOSH_CONFIG="~/.poshtheme.omp.json"
|
||||
eval "$(oh-my-posh init bash --config $OHMYPOSH_CONFIG)"
|
||||
|
|
|
@ -4,6 +4,4 @@ export HISTFILESIZE=100000 # big big history
|
|||
shopt -s histappend # append to history, don't overwrite it
|
||||
|
||||
# Save and reload the history after each command finishes
|
||||
if ! [[ "$PROMPT_COMMAND" =~ "history -a; history -c; history -r;" ]]; then
|
||||
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||||
fi
|
||||
export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue