summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/shortcuts10
1 files changed, 8 insertions, 2 deletions
diff --git a/.local/bin/shortcuts b/.local/bin/shortcuts
index 3311349..9b9feb7 100755
--- a/.local/bin/shortcuts
+++ b/.local/bin/shortcuts
@@ -23,9 +23,9 @@ printf "# vim: filetype=sh\\n" > "$shell_env_shortcuts"
printf "\" vim: filetype=vim\\n" > "$vifm_shortcuts"
# Enable nesting
-eval "echo \"$(cat "$bmdirs" "$bmdirs_eibhear"")\"" | \
+eval "echo \"$(cat "$bmdirs" "$bmdirs_eibhear")\"" | \
awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");
- printf(\"[ -n \42%s\42 ] && export %s=\42%s\42 \n\",\$1,\$1,\$2) >> \"$shell_env_shortcuts\" ;"
+ printf(\"[ -n \42%s\42 ] && export %s=\42%s\42 \n\",\$1,\$1,\$2) >> \"$shell_env_shortcuts\" }"
source "$shell_env_shortcuts"
# Format the `directories` file in the correct syntax and sent it to all three configs.
@@ -40,6 +40,12 @@ awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");
printf(\"map C%s cd \42%s\42 \n\",\$1,\$2) >> \"$lf_shortcuts\" ;
printf(\"cmap ;%s %s\n\",\$1,\$2) >> \"$vim_shortcuts\" }"
+# Enable nesting
+eval "echo \"$(cat "$bmfiles" "$bmfiles_eibhear")\"" | \
+awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");
+ printf(\"[ -n \42%s\42 ] && export %s=\42%s\42 \n\",\$1,\$1,\$2) >> \"$shell_env_shortcuts\" }"
+source "$shell_env_shortcuts"
+
# Format the `files` file in the correct syntax and sent it to both configs.
eval "echo \"$(cat "$bmfiles" "$bmfiles_eibhear")\"" | \
awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");