mainly minor fixes
[distro-setup] / brc2
diff --git a/brc2 b/brc2
index c857670bc64f937d381c42e6123a79ba8f480bcf..3b1d5ba270298d0329926c20719c38b5141f7c76 100644 (file)
--- 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