From d752f5f5c03cabb8ca248f74e71f15707582b088 Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Mon, 2 Aug 2021 17:11:58 +0200 Subject: [PATCH] I want my prompt & settings in tty too. --- zsh/.zshrc | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/zsh/.zshrc b/zsh/.zshrc index 6b9a501..3a51da3 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -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