From 2a7aa5df1d6e8107a45bc8e6f82ef38955c9f8a3 Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Sat, 15 Mar 2025 15:51:12 +0100 Subject: Eibhear: extend .gitignore, fix in ~sc/shortcuts --- .local/bin/shortcuts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to '.local') 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*#.*$\",\"\"); -- cgit v1.3.1