summaryrefslogtreecommitdiff
path: root/.local/bin/shortcutgen
diff options
context:
space:
mode:
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"
+
+