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
6
_home/dot_sz.shrc.d/zsh.post/10_oh-my-posh
Normal file
6
_home/dot_sz.shrc.d/zsh.post/10_oh-my-posh
Normal file
|
@ -0,0 +1,6 @@
|
|||
if [[ -n "$(which-command oh-my-posh)" ]]; then
|
||||
OHMYPOSH_CONFIG=''
|
||||
[[ -r ~/.poshtheme.omp.json ]] && OHMYPOSH_CONFIG="~/.poshtheme.omp.json"
|
||||
eval "$(oh-my-posh init zsh --config $OHMYPOSH_CONFIG)"
|
||||
unset OHMYPOSH_CONFIG
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue