Skip to content

Commit

Permalink
refactor: Update Zsh configuration and improve dev tools installation…
Browse files Browse the repository at this point in the history
… process
  • Loading branch information
Goran Ninkovic committed May 3, 2024
1 parent 2c17b91 commit a20d8c6
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions post-installation/defaults/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi


# Perhaps this is not needed?
# autoload -Uz compinit
# compinit

# Antidote
IS_MAC=$(uname -a | grep -i darwin)
IS_LINUX=$(uname -a | grep -i linux)
if [ $IS_MAC ]; then
ZDOTDIR=$(brew --prefix)/opt/antidote/share/antidote
autoload -Uz compinit
compinit
elif [ $IS_LINUX ]; then
ZDOTDIR=~/.antidote
fi
Expand All @@ -23,7 +20,7 @@ fi
source ${ZDOTDIR:-~}/antidote.zsh

# Check if the plugins file is older than the sh file and regenerate it if needed
zsh_plugins=${ZDOTDIR:-$HOME}/.zsh_plugins
zsh_plugins=~/.zsh_plugins
if [[ ! ${zsh_plugins}.zsh -nt ${zsh_plugins}.sh ]]; then
antidote bundle <${zsh_plugins}.sh >${zsh_plugins}.zsh
fi
Expand Down

0 comments on commit a20d8c6

Please sign in to comment.