mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 13:14:35 +00:00
Handle some cleanup for ubuntu
This commit is contained in:
parent
617125deda
commit
3bfcd50b75
10
home/.zshrc
10
home/.zshrc
|
@ -1,13 +1,14 @@
|
||||||
# ZSH Cache config
|
# ZSH Cache config
|
||||||
ZSH_CACHE="$HOME/.cache/zsh"
|
export ZSH_CACHE="$HOME/.cache/zsh"
|
||||||
export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION"
|
export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION"
|
||||||
# Move .zsh-update to $ZSH_CACHE
|
export HISTFILE=$ZSH_CACHE/history
|
||||||
|
# Move certain files directly
|
||||||
[ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update
|
[ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update
|
||||||
|
[ -f ~/.zcompdump ] && mv ~/.zcompdump $ZSH_CACHE/zcompdump-$ZSH_VERSION # Ubuntu refuses to follow env ZSH_COMPDUMP
|
||||||
|
|
||||||
# ZSH History config
|
# ZSH History config
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
SAVEHIST=10000
|
SAVEHIST=10000
|
||||||
HISTFILE=$ZSH_CACHE/history
|
|
||||||
setopt appendhistory
|
setopt appendhistory
|
||||||
|
|
||||||
# oh-my-zsh configuration
|
# oh-my-zsh configuration
|
||||||
|
@ -29,6 +30,9 @@ zmodload zsh/complist
|
||||||
compinit -d $ZSH_COMPDUMP
|
compinit -d $ZSH_COMPDUMP
|
||||||
comp_options+=(globdots)
|
comp_options+=(globdots)
|
||||||
|
|
||||||
|
# Automatic file removal for cleanup
|
||||||
|
[ -f ~/.sudo_as_admin_sucessful ] && rm ~/.sudo_as_admin_successful # Ubuntu makes this every with sudo usage
|
||||||
|
|
||||||
# Environmental variable exports, including XDG standard definitions
|
# Environmental variable exports, including XDG standard definitions
|
||||||
[ -f ~/.config/sh/environ ] && source ~/.config/sh/environ
|
[ -f ~/.config/sh/environ ] && source ~/.config/sh/environ
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue