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:*' menu select
zstyle ':completion:*' list-colors '' zstyle ':completion:*' list-colors ''
source $ZDOTDIR/keys.zsh # keys
# fancy stuff only in X or ssh source $ZDOTDIR/keys.zsh
if [[ ! $(tty) =~ /dev/tty[0-9] ]]; then
# aliases # aliases
source $ZDOTDIR/aliases.zsh source $ZDOTDIR/aliases.zsh
# plugins & addons
[ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $ZDOTDIR/fzf.zsh # plugins & addons
source $ZDOTDIR/modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh [ -f $XDG_CONFIG_HOME/fzf/fzf.zsh ] && source $ZDOTDIR/fzf.zsh
# theme source $ZDOTDIR/modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source $ZDOTDIR/p10k.zsh # theme
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
fi source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
else
alias ll="ls -l"
alias vim="nvi"
fi fi
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list export WD_CONFIG=$XDG_CONFIG_HOME/wd_list