summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2022-11-26 13:57:03 +0200
committerSyndamia <kamen@syndamia.com>2022-11-26 13:57:03 +0200
commit6e8629a8fd062ea857c558a9a8bfe520905102b1 (patch)
tree30f997124b66907d6f4c6b4e89b3b325e8faa601 /.zshrc
parentbf80dd397748c768b13d02996a0852edc5272785 (diff)
downloaddotfiles-6e8629a8fd062ea857c558a9a8bfe520905102b1.tar
dotfiles-6e8629a8fd062ea857c558a9a8bfe520905102b1.tar.gz
dotfiles-6e8629a8fd062ea857c558a9a8bfe520905102b1.zip
[zshrc] Fixed cd commands in cdrepo
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index 45695a7..3c4399b 100644
--- a/.zshrc
+++ b/.zshrc
@@ -225,8 +225,8 @@ device='desktop' # can be either "desktop" (default when empty), "server" or "an
if [[ $device != "server" ]]; then
cdrepo () {
- cd "~/Programming/$1"
- [ -n "$2" ] && cd "$2" || return 0
+ [ -n "$2" ] && cd "$HOME/Programming/$1/$2" \
+ || cd "$HOME/Programming/$1"
}
fi