X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=68ba8cb1b018b9991a85b2cdfd290cfb750a8082;hb=5b41556156a8c6c4fb4b15d0c6b03095a48d0211;hp=c2f946a8c01ef8a160c0b6af2d737bb8957b0612;hpb=077f310e41b5b0f5cd47fd1b523d9a51c9b6ef0b;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index c2f946a8..68ba8cb1 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -315,20 +315,19 @@ if [ -z "$skip_all" ]; then # or at least suse doesn't, which is the other one we've tested on. /bin/su -l $* fi - - # relabel the console after returning. - bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh } # sudo function wraps the normal sudo by ensuring we replace the terminal # label if they're doing an su with the sudo. function sudo() { - local first_command="$1" +# local first_command="$1" + save_terminal_title /usr/bin/sudo "$@" - if [ "$first_command" == "su" ]; then - # yep, they were doing an su, but they're back now. - bash $FEISTY_MEOW_SCRIPTS/tty/label_terminal_with_infos.sh - fi + restore_terminal_title +# if [ "$first_command" == "su" ]; then +# # yep, they were doing an su, but they're back now. +# label_terminal_with_info +# fi } # trashes the .#blah files that cvs and svn leave behind when finding conflicts. @@ -354,6 +353,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 @@ -365,6 +365,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 @@ -376,6 +377,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'" @@ -403,6 +407,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