I want my prompt & settings in tty too.

This commit is contained in:
Bartek Stalewski 2021-08-02 17:11:58 +02:00
parent 88f6831798
commit d752f5f5c0

View File

@ -15,23 +15,20 @@ mkdir -p $XDG_CACHE_HOME/zsh
zstyle ':completion:*' menu select
zstyle ':completion:*' list-colors ''
source $ZDOTDIR/keys.zsh
# 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
# 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"
# keys
source $ZDOTDIR/keys.zsh
# 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
# 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
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list