summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-05-12 23:10:04 -0400
committerBenjamin Chausse <benjamin@chausse.xyz>2024-05-12 23:10:04 -0400
commit1a8546f1dbcd7f81ee3bc044c6915c741e4ecd6b (patch)
tree9d133b38c91417c8cf44cb11fb458f296ec6990f /.local/bin
parent231d1bf28459cd90112b54f98263d23c789feca9 (diff)
parent2345ca22d2b785d0e4c7bb38e681138995c348b0 (diff)
Merge branch 'master' of github.com:ChausseBenjamin/dotfiles
Diffstat (limited to '.local/bin')
-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"