summaryrefslogtreecommitdiff
path: root/.local/bin/shortcutgen
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-03-06 14:59:00 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-03-06 14:59:00 -0500
commit03dd8b3cd8d03300ee85377ea40fa486819d2ebc (patch)
treecdeffd7721bb73918184a83c2f9c034142381564 /.local/bin/shortcutgen
parentb9581d702f388489725ff7d5a7394009124b5154 (diff)
Update shortcutgen env and misc others
Diffstat (limited to '.local/bin/shortcutgen')
-rwxr-xr-x.local/bin/shortcutgen4
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/bin/shortcutgen b/.local/bin/shortcutgen
index ce29ffb..2335a92 100755
--- a/.local/bin/shortcutgen
+++ b/.local/bin/shortcutgen
@@ -16,5 +16,7 @@ echo "$raw" | sed 's/\(.*\),\(.*\),\(.*\)/map g\2 cd \3/' >"$XDG_CONFIG_HOME/lf/
echo "$raw" | sed 's/\(.*\),\(.*\),\(.*\)/alias g\2="cd \3"/' >"$HOME/.cache/zsh-shortcuts"
# Environment variables (read by .profile)
-echo "$raw" | sed 's/\(.*\),\(.*\),\(.*\)/export G\U\2="\3"/' >"$HOME/.cache/env-shortcuts"
+echo "$raw" | sed 's/^\(.*\),\(.*\),/export G\U\2=,/;s/,\(.*\)/\1/' >"$HOME/.cache/env-shortcuts"
+
+