From 8a813aad8f5ac832479fdc102adee581aa5113ea Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Mon, 6 Nov 2023 08:30:42 +0000 Subject: [PATCH] chore(shell): add github shortcut so it shows shorter in the prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the shell prompt when you were in a directory it would commonly be `~s/github.com/AdeAttwood/Dotfiles|branch ⇒` This mapping will shorten this down to try and make the prompt a bit less intrusive when in a subdirectory of a project. `~gh/AdeAttwood/Dotfiles|branch ⇒` --- site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh | 1 + 1 file changed, 1 insertion(+) diff --git a/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh b/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh index a15938e..730cb4d 100644 --- a/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh +++ b/site-modules/core/files/oh-my-zsh/custom/shortcuts.zsh @@ -22,3 +22,4 @@ mutt_scripts=~/.mutt/scripts # hash -d code=~/Code hash -d s=~/Code/src +hash -d gh=~/Code/src/github.com