Cleaning up.
This commit is contained in:
parent
0762c38b50
commit
f26274aeae
19 changed files with 2 additions and 2 deletions
68
config/zsh/.zshrc
Normal file
68
config/zsh/.zshrc
Normal file
|
@ -0,0 +1,68 @@
|
|||
# mac specific configuration
|
||||
touch $HOME/.hushlogin
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
|
||||
# prepare directories
|
||||
mkdir -p $XDG_CACHE_HOME/zsh
|
||||
mkdir -p $XDG_DATA_HOME/zsh
|
||||
|
||||
# global exports and options
|
||||
setopt HIST_IGNORE_ALL_DUPS
|
||||
setopt HIST_SAVE_NO_DUPS
|
||||
setopt HIST_REDUCE_BLANKS
|
||||
setopt SHARE_HISTORY
|
||||
setopt INC_APPEND_HISTORY
|
||||
|
||||
# set path
|
||||
path=(~/.local/bin "$path[@]")
|
||||
|
||||
# source configuration
|
||||
source $ZDOTDIR/aliases.zsh
|
||||
source $ZDOTDIR/cleanhome.zsh
|
||||
source $ZDOTDIR/fzf.zsh
|
||||
source $ZDOTDIR/keys.zsh
|
||||
|
||||
# source modules
|
||||
source ~/.local/git/zsh_modules/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
|
||||
source ~/.local/git/zsh_modules/wd/wd.plugin.zsh
|
||||
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
|
||||
|
||||
# set fpath
|
||||
fpath=(~/.local/git/zsh_modules/wd $fpath)
|
||||
|
||||
# theme and colors
|
||||
if [[ $(command -v vivid) ]]; then
|
||||
export LS_COLORS=$(vivid generate molokai)
|
||||
else
|
||||
unset LS_COLORS
|
||||
fi
|
||||
tabs 2
|
||||
export STARSHIP_CACHE="$XDG_CACHE_HOME"/starship
|
||||
eval "$(STARSHIP_CACHE="$XDG_CACHE_HOME"/starship starship init zsh)"
|
||||
|
||||
# completion
|
||||
zstyle ':completion:*' menu select
|
||||
zstyle ':completion:*' list-colors ''
|
||||
|
||||
autoload -Uz compinit
|
||||
if [ ! -e $XDG_DATA_HOME/zsh/zcompdump.zwc ]; then
|
||||
autoload -Uz zrecompile
|
||||
zrecompile -p -R $XDG_DATA_HOME/zsh/zcompdump
|
||||
fi
|
||||
if [[ -n $XDG_DATA_HOME/zsh/zcompdump(#qN.mh+24) ]]; then
|
||||
compinit -d $XDG_DATA_HOME/zsh/zcompdump
|
||||
else
|
||||
compinit -C -d $XDG_DATA_HOME/zsh/zcompdump
|
||||
fi
|
||||
|
||||
# quick note functionality
|
||||
if [[ -f ~/.note ]]; then
|
||||
echo
|
||||
cat ~/.note
|
||||
echo
|
||||
fi
|
||||
|
||||
# local settings
|
||||
if [[ -f ~/.local/config/zsh ]]; then
|
||||
source ~/.local/config/zsh
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue