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