X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=brc2;h=3b1d5ba270298d0329926c20719c38b5141f7c76;hb=55b37c2dbe292fa1023c0c5376c2104fbe568011;hp=c857670bc64f937d381c42e6123a79ba8f480bcf;hpb=f27b67a1dfa58b5f101bba607b2f91a73e65299e;p=distro-setup diff --git a/brc2 b/brc2 index c857670..3b1d5ba 100644 --- a/brc2 +++ b/brc2 @@ -925,7 +925,7 @@ beetag() { else pl_state_file=sorted fi - pl_state_dir=/i/info/pl-state + pl_state_dir=/b/data/pl-state if [[ $playlist ]]; then pl_state_dir=$pl_state_dir/$playlist else @@ -2012,6 +2012,10 @@ apache-apply-repo() { apache-apply() { for file; do + if [[ ! -e $file ]]; then + echo '#!/bin/bash' >$file + chmod +x $file + fi if head -n1 "$file"| grep -E '^#!/' &>/dev/null; then { head -n1 "$file" @@ -4850,19 +4854,24 @@ klease() { } # ffs and switch the bash history on this terminal. -ffs() { - local last - last="${*: -1}" - if [[ $last && $last != -* && $last != sysops ]]; then - his - fi - command ffs "$@" -} +# disabled because I don't really need this and +# the history switching is annoying for debugging. +# +# ffs() { +# local last +# last="${*: -1}" +# if [[ $last && $last != -* && $last != sysops ]]; then +# his +# fi +# command ffs "$@" +# } i3gen() { /b/ds/i3-sway/gen } + + export BASEFILE_DIR=/a/bin/fai-basefiles #export ANDROID_HOME=/a/opt/android-home