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"
}
# 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