Swtich to starship.

This commit is contained in:
Bartek Stalewski 2023-05-28 14:42:21 +02:00
parent 6616469735
commit bc074b77ba
4 changed files with 7 additions and 11 deletions

View file

@ -17,9 +17,10 @@ setopt HIST_REDUCE_BLANKS
setopt SHARE_HISTORY
setopt INC_APPEND_HISTORY
if [[ -n $DISPLAY ]]; then
export PATH=~/.local/bin:$PATH
fi
# if [[ -z $DISPLAY ]]; then
# export PATH=~/.local/bin:$PATH
# fi
path=(~/.local/bin "$path[@]")
# source configuration
source $ZDOTDIR/aliases.zsh
@ -35,11 +36,7 @@ export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
fpath=($XDG_DATA_HOME/repos/zsh_modules/wd $fpath)
# theme and colors
source $ZDOTDIR/p10k.zsh
source $XDG_DATA_HOME/repos/zsh_modules/powerlevel10k/powerlevel10k.zsh-theme
if [[ -r "$XDG_CACHE_HOME/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "$XDG_CACHE_HOME/p10k-instant-prompt-${(%):-%n}.zsh"
fi
eval "$(starship init zsh)"
if [[ $(command -v vivid) ]]; then
export LS_COLORS=$(vivid generate molokai)
else
@ -73,4 +70,3 @@ fi
if [[ -f ~/.local/config/zsh ]]; then
source ~/.local/config/zsh
fi