Zsh cleaning.
This commit is contained in:
parent
0f37d04702
commit
e149102ce9
@ -3,3 +3,6 @@ export XDG_CACHE_HOME=$HOME/.cache
|
||||
export XDG_CONFIG_HOME=$HOME/.config
|
||||
export XDG_DATA_HOME=$HOME/.local/share
|
||||
export XDG_STATE_HOME=$HOME/.local/state
|
||||
export HISTSIZE=10000
|
||||
export SAVEHIST=$HISTSIZE
|
||||
export HISTFILE=$XDG_DATA_HOME/zsh/history
|
||||
|
@ -1,21 +1,15 @@
|
||||
# prepare directories
|
||||
if [[ -L $XDG_CACHE_HOME ]]; then
|
||||
rm -rf $XDG_CACHE_HOME
|
||||
mkdir -p $XDG_CACHE_HOME
|
||||
fi
|
||||
mkdir -p $XDG_DATA_HOME/zsh
|
||||
mkdir -p $XDG_CACHE_HOME/zsh
|
||||
mkdir -p $XDG_DATA_HOME/zsh
|
||||
|
||||
# global exports and options
|
||||
export HISTSIZE=10000
|
||||
export SAVEHIST=$HISTSIZE
|
||||
export HISTFILE=$XDG_DATA_HOME/zsh/history
|
||||
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
|
||||
@ -30,7 +24,7 @@ source $XDG_DATA_HOME/repos/zsh_modules/fast-syntax-highlighting/fast-syntax-hig
|
||||
source $XDG_DATA_HOME/repos/zsh_modules/wd/wd.plugin.zsh
|
||||
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
|
||||
|
||||
# set path
|
||||
# set fpath
|
||||
fpath=($XDG_DATA_HOME/repos/zsh_modules/wd $fpath)
|
||||
|
||||
# theme and colors
|
||||
|
Loading…
Reference in New Issue
Block a user