Skip to content

Can't use znap pull in a script #208

Answered by kud
kud asked this question in Q&A
Dec 26, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Okay like that it works


if [ ! -d "$HOME/.znap" ]; then
  git clone --depth=1 https://github.com/marlonrichert/zsh-snap.git ~/.znap
  source ~/.znap/install.zsh
else
  zstyle ':znap:*' repos-dir ~/.zsh
  source ~/.znap/znap.zsh
  znap pull
fi

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by kud
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants