diff --git a/zsh/.zshrc b/zsh/.zshrc index 3081acf..6b98476 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -16,20 +16,22 @@ mkdir -p $XDG_DATA_HOME/zsh zstyle ':completion:*' menu select zstyle ':completion:*' list-colors '' -# 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 +# fancy stuff only in X or ssh if [[ ! $(tty) =~ "/dev/tty.*" ]]; 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