X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=0ca25cde6ecc5945f755ec54021ae29b58a1325b;hb=a5bb115313d0e3fc896b0b5a6746f3900ab999fb;hp=1cdcac4175137ebdaed6fe0b234ad034a3d8ee72;hpb=f9a2a21830b0ea5f803c17cae56573a6b18e43db;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 1cdcac41..0ca25cde 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -244,8 +244,15 @@ if [ -z "$skip_all" ]; then done } - function fix_alsa() { - sudo /etc/init.d/alsasound restart +# function fix_alsa() { +# sudo /etc/init.d/alsasound restart +# } + + function screen() { + save_terminal_title +#hmmm: ugly absolute path here. + /usr/bin/screen $* + restore_terminal_title } # switches from a /X/path form to an X:/ form. this also processes cygwin paths. @@ -353,6 +360,7 @@ if [ -z "$skip_all" ]; then # recreates all the generated files that the feisty meow scripts use. function regenerate() { # do the bootstrapping process again. + save_terminal_title echo "regenerating feisty meow script environment." bash $FEISTY_MEOW_SCRIPTS/core/reconfigure_feisty_meow.sh echo @@ -364,6 +372,7 @@ if [ -z "$skip_all" ]; then source $FEISTY_MEOW_SCRIPTS/core/launch_feisty_meow.sh # run nechung oracle to give user a new fortune. nechung + restore_terminal_title } # copies a set of custom scripts into the proper location for feisty meow @@ -375,6 +384,9 @@ if [ -z "$skip_all" ]; then # use our default example user if there was no name provided. user=fred fi + + save_terminal_title + if [ ! -d "$FEISTY_MEOW_APEX/customize/$user" ]; then echo "The customization folder provided for $user should be:" echo " '$FEISTY_MEOW_APEX/customize/$user'" @@ -402,6 +414,8 @@ if [ -z "$skip_all" ]; then fi echo regenerate + + restore_terminal_title } # generates a random password where the first parameter is the number of characters