summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorBenjamin Chaussé <Benjamin.Chausse@goto.com>2024-05-12 04:07:59 -0400
committerBenjamin Chaussé <Benjamin.Chausse@goto.com>2024-05-12 04:07:59 -0400
commit2345ca22d2b785d0e4c7bb38e681138995c348b0 (patch)
treeee9a3b4cfa8249cdd6104d567c0db3313f84a74b /.local
parent3d1d3908bd36d00d446fad6a9375f65681fafdb5 (diff)
Fix shortcutgen
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/shortcutgen6
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"