Prompt - X or no X.

This commit is contained in:
Bartek Stalewski 2021-05-21 01:18:18 +02:00
parent 387d4f8fe6
commit 76bfc26300

View File

@ -18,27 +18,28 @@ zstyle ':completion:*' list-colors ''
# fancy stuff only in X or ssh
if [[ ! $(tty) =~ /dev/tty[0-9] ]]; then
# aliases
source $ZDOTDIR/aliases.zsh
# plugins & addons
[ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $ZDOTDIR/fzf.zsh
source $ZDOTDIR/modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
wd () {
. $ZDOTDIR/modules/wd/wd.sh
}
fpath=($ZDOTDIR/modules/wd $fpath)
# theme
source $ZDOTDIR/p10k.zsh
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
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
alias ll="ls -l"
alias vim="nvi"
fi
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
wd () {
. $ZDOTDIR/modules/wd/wd.sh
}
fpath=($ZDOTDIR/modules/wd $fpath)
# local settings
source ~/.local/settings/zsh
autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump