From 2345ca22d2b785d0e4c7bb38e681138995c348b0 Mon Sep 17 00:00:00 2001 From: Benjamin Chaussé Date: Sun, 12 May 2024 04:07:59 -0400 Subject: Fix shortcutgen --- .local/bin/shortcutgen | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.local') diff --git a/.local/bin/shortcutgen b/.local/bin/shortcutgen index 4701655..f11cdf7 100755 --- a/.local/bin/shortcutgen +++ b/.local/bin/shortcutgen @@ -43,14 +43,14 @@ function remove_whitespace(str) { uc_col2 = toupper($2) # Write to $XDG_CONFIG_HOME/lf/shortcuts - print "map g" lc_col2 " cd " $3 > ENVIRON["XDG_CONFIG_HOME"] "/lf/shortcuts" + print "map g" lc_col2 " cd " $3 > lf_filepath # Write to $XDG_CACHE_HOME/zsh-shortcuts # print "alias g" lc_col2 "=\"cd " $3 "\"" > ENVIRON["XDG_CACHE_HOME"] "/zsh-shortcuts" - print "g" lc_col2 "() {cd " $3 "}" > ENVIRON["XDG_CACHE_HOME"] "/zsh-shortcuts" + print "g" lc_col2 "() {cd " $3 "}" > zsh_filepath # Write to $XDG_CACHE_HOME/env-shortcuts - print "export G" uc_col2 "=\"" $3 "\"" > ENVIRON["XDG_CACHE_HOME"] "/env-shortcuts" + print "export G" uc_col2 "=\"" $3 "\"" > env_filepath } } ' "$src" -- cgit v1.2.3