From e2c966b187a24bfa538cfa48d25d33b0d91f94e5 Mon Sep 17 00:00:00 2001 From: Hans Goor Date: Sun, 22 Jun 2025 14:34:08 +0100 Subject: [PATCH] Auto create workspace dir. Set path for cdp. --- stowers/zsh/dot-zshrc.d/00-setup.sh | 2 +- stowers/zsh/dot-zshrc.d/01-aliases.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stowers/zsh/dot-zshrc.d/00-setup.sh b/stowers/zsh/dot-zshrc.d/00-setup.sh index 9522509..110044b 100644 --- a/stowers/zsh/dot-zshrc.d/00-setup.sh +++ b/stowers/zsh/dot-zshrc.d/00-setup.sh @@ -4,4 +4,4 @@ export SPACES_DIR="${HOME}/spaces" export WORKSPACE_DIR="${SPACES_DIR}/workspace" mkdir -p "${SPACES_DIR}" - +mkdir -p "${WORKSPACE_DIR}" diff --git a/stowers/zsh/dot-zshrc.d/01-aliases.sh b/stowers/zsh/dot-zshrc.d/01-aliases.sh index b56fee3..8082527 100644 --- a/stowers/zsh/dot-zshrc.d/01-aliases.sh +++ b/stowers/zsh/dot-zshrc.d/01-aliases.sh @@ -5,5 +5,5 @@ alias vim="nvim" alias cdw="cd \${WORKSPACE_DIR}" function cdp() { - cd -- "$(_cdp_path "$@")" + cd -- "${WORKSPACE_DIR}/$(~/.local/bin/pp "$@")" }