Fancy prompt only inside X.
This commit is contained in:
parent
73946ce4fb
commit
2966b21281
12
zsh/.zshrc
12
zsh/.zshrc
@ -26,10 +26,14 @@ wd () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# theme
|
# theme
|
||||||
source $ZDOTDIR/p10k.zsh
|
if [ $DISPLAY ] ; then
|
||||||
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
|
source $ZDOTDIR/p10k.zsh
|
||||||
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
export PS1="%n@%m %1~ %# "
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# local settings
|
# local settings
|
||||||
|
Loading…
Reference in New Issue
Block a user