From 3ba0bd44ce531cd3143a8f7e82fb412305af6c40 Mon Sep 17 00:00:00 2001 From: Xevion Date: Mon, 7 Oct 2024 19:41:00 -0500 Subject: [PATCH] Add chcode editor alias --- executable_dot_bash_aliases | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/executable_dot_bash_aliases b/executable_dot_bash_aliases index 8b51af2..c962865 100644 --- a/executable_dot_bash_aliases +++ b/executable_dot_bash_aliases @@ -16,6 +16,11 @@ alias l='ls -CF' # https://docs.gitignore.io/install/command-line function gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;} +function chcode() { + EDITOR="code --wait" + chezmoi edit $1 +} + # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'