Compare commits

..

2 commits

Author SHA1 Message Date
Peter Vacho
1e3b187d27
Auto-create zsh histfile file if not exists 2025-12-02 18:59:28 +01:00
Peter Vacho
e4b7fe0234
Auto-clone zgenom if not present 2025-12-02 18:56:45 +01:00
2 changed files with 13 additions and 1 deletions

View file

@ -57,3 +57,8 @@ setopt EXTENDED_HISTORY
# beep in ZLE when a widget attempts to access a history entry which isnt there
unsetopt HIST_BEEP
# Auto-create the histfile cache directory if it doesn't yet exist
if [ ! -d "$(dirname "$HISTFILE")" ]; then
mkdir -p "$(dirname "$HISTFILE")"
touch "$HISTFILE"
fi

View file

@ -1,5 +1,12 @@
ZGENOM_DIR="${ZDOTDIR}/.zgenom"
# Clone zgenom if it's not present yet
if [[ ! -d "$ZGENOM_DIR" ]]; then
git clone https://github.com/jandamm/zgenom "$ZGENOM_DIR"
fi
# Load zgenom (plugin manager for ZSH)
source "${ZDOTDIR}/.zgenom/zgenom.zsh"
source "${ZGENOM_DIR}/.zgenom/zgenom.zsh"
# Check for zgenom updates
# This does not increase startup time