summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsadbeast <sadbeast@sadbeast.com>2024-02-17 14:19:53 -0800
committersadbeast <sadbeast@sadbeast.com>2024-02-17 14:19:53 -0800
commiteadfad85d8028bb63a9683e9ecef7f3863464cb0 (patch)
treeb4fa3a15ae34171b305150461d8809bf556ef008
parent75a81afb44b9be12a7c620d85932e16ad023bc54 (diff)
downloadcfg-eadfad85d8028bb63a9683e9ecef7f3863464cb0.tar.gz
cfg-eadfad85d8028bb63a9683e9ecef7f3863464cb0.tar.bz2
fix asdf
-rw-r--r--.zshrc12
1 files changed, 10 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index 855bbd0..fcd8ea8 100644
--- a/.zshrc
+++ b/.zshrc
@@ -1,5 +1,8 @@
export PATH="$PATH:$HOME/bin:$HOME/projects/zig"
-autoload -Uz compinit
+
+
+# initialise completions with ZSH's compinit
+autoload -Uz compinit && compinit
typeset -i updated_at=$(date +'%j' -r ~/.zcompdump 2>/dev/null || stat -f '%Sm' -t '%j' ~/.zcompdump 2>/dev/null)
if [ $(date +'%j') != $updated_at ]; then
@@ -18,6 +21,12 @@ fi
source ${ZDOTDIR:-~}/.antidote/antidote.zsh
antidote load
+export ASDF_DIR="$HOME/.asdf"
+. "$ASDF_DIR//asdf.sh"
+
+# append completions to fpath
+fpath=(${ASDF_DIR}/completions $fpath)
+
HISTFILE=$HOME/.zsh_history
HISTSIZE=100000
SAVEHIST=$HISTSIZE
@@ -102,4 +111,3 @@ export LS_COLORS="$(vivid generate one-dark)"
eval "$(direnv hook zsh)"
-. /opt/asdf-vm/asdf.sh