Prompt - X or no X.
This commit is contained in:
parent
387d4f8fe6
commit
76bfc26300
17
zsh/.zshrc
17
zsh/.zshrc
@ -18,27 +18,28 @@ zstyle ':completion:*' list-colors ''
|
|||||||
|
|
||||||
# fancy stuff only in X or ssh
|
# fancy stuff only in X or ssh
|
||||||
if [[ ! $(tty) =~ /dev/tty[0-9] ]]; then
|
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
|
||||||
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
|
|
||||||
wd () {
|
|
||||||
. $ZDOTDIR/modules/wd/wd.sh
|
|
||||||
}
|
|
||||||
fpath=($ZDOTDIR/modules/wd $fpath)
|
|
||||||
|
|
||||||
# theme
|
# theme
|
||||||
source $ZDOTDIR/p10k.zsh
|
source $ZDOTDIR/p10k.zsh
|
||||||
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
|
source $ZDOTDIR/modules/powerlevel10k/powerlevel10k.zsh-theme
|
||||||
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
|
fi
|
||||||
|
|
||||||
|
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
|
||||||
|
wd () {
|
||||||
|
. $ZDOTDIR/modules/wd/wd.sh
|
||||||
|
}
|
||||||
|
fpath=($ZDOTDIR/modules/wd $fpath)
|
||||||
|
|
||||||
# local settings
|
# local settings
|
||||||
source ~/.local/settings/zsh
|
source ~/.local/settings/zsh
|
||||||
autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump
|
autoload -U compinit && compinit -d $XDG_DATA_HOME/zsh/zcompdump
|
||||||
|
Loading…
Reference in New Issue
Block a user