by root. more sudo usage seems slightly safer.
alias unmoo='umount /z/stuffing ; umount /z/walrus ; umount /z/chunky ; umount /z/fredgrid'
# cleans up the ownership for all my files.
-alias refred='(chown -R fred:fred /home/fred /home/games /home/archives ; normal_perm /var/log )'
+#moved alias refred='(chown -R fred:fred /home/fred /home/games /home/archives ; normal_perm /var/log )'
# load in the xsede build scripts.
source "$FEISTY_MEOW_SCRIPTS/buildor/build_xsedes.sh"
--- /dev/null
+#!/bin/bash
+
+# cleans up the ownership for all my files.
+function refred()
+{
+ chown -R fred:fred /home/fred /home/games /home/archives
+ bash $FEISTY_MEOW_SCRIPTS/files/normal_perm.sh /var/log
+}
+
+# this block should execute when the script is actually run, rather
+# than when it's just being sourced.
+if [[ $0 =~ .*refred\.sh.* ]]; then
+ THISDIR="$( \cd "$(\dirname "$0")" && \pwd )"
+ export LIGHTWEIGHT_INIT=true
+ source "$THISDIR/../../scripts/core/launch_feisty_meow.sh"
+ refred
+fi
+