zsh: add directory shortcuts - dotfiles - 🍚 personal arsenal of "rice"
HTML git clone https://git.drkhsh.at/dotfiles.git
DIR Log
DIR Files
DIR Refs
DIR Submodules
DIR README
DIR LICENSE
---
DIR commit bf5ccc62c8d6ecb17c9cc4ec715fbf63b34a1992
DIR parent 4ca2ea2858ed7d012b2d0c8bdb7973bc4696a7a0
HTML Author: drkhsh <me@drkhsh.at>
Date: Wed, 16 Jul 2025 17:08:32 +0200
zsh: add directory shortcuts
Diffstat:
M zsh/.config/zsh/10-general.zsh | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/zsh/.config/zsh/10-general.zsh b/zsh/.config/zsh/10-general.zsh
@@ -58,3 +58,7 @@ _exists newsboat && ( [[ -d "$XDG_CONFIG_HOME"/newsboat ]] || \
# move notmuch config
_exists notmuch && ( [[ -d $XDG_CONFIG_HOME/notmuch/default ]] || \
mkdir -p $XDG_CONFIG_HOME/notmuch/default )
+
+# directory shortcuts
+hash -d g=$HOME/git
+hash -d t=/tmp