diff --git a/.bin/setup-zk b/.bin/setup-zk index d830dfb..f719962 100755 --- a/.bin/setup-zk +++ b/.bin/setup-zk @@ -4,5 +4,11 @@ if [ ! -d ~/.zk ]; then echo "[zk] Setting up zettelkasten" gh repo clone zk ~/.zk else - echo "[zk] Zettelkasten already set up. Use 'zk' to open it" + echo "[zk] Zettelkasten already set up." +fi + +read -p "Would you like to run 'zk' now? [y/N] " -n 1 -r +echo +if [[ $REPLY =~ ^[Yy]$ ]]; then + command -v zk >/dev/null 2>&1 && zk || echo "Error: 'zk' command not found in PATH" fi