diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2025-03-15 15:51:12 +0100 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2025-03-15 15:51:12 +0100 |
| commit | 2a7aa5df1d6e8107a45bc8e6f82ef38955c9f8a3 (patch) | |
| tree | ece7c62dab5251825756528fb99cf0652af35a06 /.local/bin/shortcuts | |
| parent | d7c8b912e63c9a112d75f6b9e2e3f5d3c6975240 (diff) | |
| download | eibhear-2a7aa5df1d6e8107a45bc8e6f82ef38955c9f8a3.tar.gz eibhear-2a7aa5df1d6e8107a45bc8e6f82ef38955c9f8a3.tar.zst eibhear-2a7aa5df1d6e8107a45bc8e6f82ef38955c9f8a3.zip | |
Eibhear: extend .gitignore, fix in ~sc/shortcuts
Diffstat (limited to '.local/bin/shortcuts')
| -rwxr-xr-x | .local/bin/shortcuts | 10 |
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*#.*$\",\"\"); |
