From 03dd8b3cd8d03300ee85377ea40fa486819d2ebc Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Wed, 6 Mar 2024 14:59:00 -0500 Subject: Update shortcutgen env and misc others --- .local/bin/shortcutgen | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to '.local/bin/shortcutgen') 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" + + -- cgit v1.2.3