Zsh cleaning.
This commit is contained in:
parent
0f37d04702
commit
e149102ce9
2 changed files with 6 additions and 9 deletions
|
@ -3,3 +3,6 @@ export XDG_CACHE_HOME=$HOME/.cache
|
||||||
export XDG_CONFIG_HOME=$HOME/.config
|
export XDG_CONFIG_HOME=$HOME/.config
|
||||||
export XDG_DATA_HOME=$HOME/.local/share
|
export XDG_DATA_HOME=$HOME/.local/share
|
||||||
export XDG_STATE_HOME=$HOME/.local/state
|
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
|
# 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_CACHE_HOME/zsh
|
||||||
|
mkdir -p $XDG_DATA_HOME/zsh
|
||||||
|
|
||||||
# global exports and options
|
# global exports and options
|
||||||
export HISTSIZE=10000
|
|
||||||
export SAVEHIST=$HISTSIZE
|
|
||||||
export HISTFILE=$XDG_DATA_HOME/zsh/history
|
|
||||||
setopt HIST_IGNORE_ALL_DUPS
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
setopt HIST_SAVE_NO_DUPS
|
setopt HIST_SAVE_NO_DUPS
|
||||||
setopt HIST_REDUCE_BLANKS
|
setopt HIST_REDUCE_BLANKS
|
||||||
setopt SHARE_HISTORY
|
setopt SHARE_HISTORY
|
||||||
setopt INC_APPEND_HISTORY
|
setopt INC_APPEND_HISTORY
|
||||||
|
|
||||||
|
# set path
|
||||||
path=(~/.local/bin "$path[@]")
|
path=(~/.local/bin "$path[@]")
|
||||||
|
|
||||||
# source configuration
|
# 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
|
source $XDG_DATA_HOME/repos/zsh_modules/wd/wd.plugin.zsh
|
||||||
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
|
export WD_CONFIG=$XDG_CONFIG_HOME/wd_list
|
||||||
|
|
||||||
# set path
|
# set fpath
|
||||||
fpath=($XDG_DATA_HOME/repos/zsh_modules/wd $fpath)
|
fpath=($XDG_DATA_HOME/repos/zsh_modules/wd $fpath)
|
||||||
|
|
||||||
# theme and colors
|
# theme and colors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue