diff options
author | Benjamin Chaussé <Benjamin.Chausse@goto.com> | 2024-05-12 04:07:59 -0400 |
---|---|---|
committer | Benjamin Chaussé <Benjamin.Chausse@goto.com> | 2024-05-12 04:07:59 -0400 |
commit | 2345ca22d2b785d0e4c7bb38e681138995c348b0 (patch) | |
tree | ee9a3b4cfa8249cdd6104d567c0db3313f84a74b /.local/bin/shortcutgen | |
parent | 3d1d3908bd36d00d446fad6a9375f65681fafdb5 (diff) |
Fix shortcutgen
Diffstat (limited to '.local/bin/shortcutgen')
-rwxr-xr-x | .local/bin/shortcutgen | 6 |
1 files changed, 3 insertions, 3 deletions
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" |