From: Chris Koeritz Date: Sun, 22 Jan 2017 23:03:34 +0000 (-0500) Subject: added function for screen X-Git-Tag: 2.140.90~257 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=7c200181abfa6b63f10c4d0b3c104937d6802c11;p=feisty_meow.git added function for screen just saves and restores the terminal title, since the screen utility insists on changing this. --- diff --git a/scripts/core/common.alias b/scripts/core/common.alias index d048a702..e77b3621 100644 --- a/scripts/core/common.alias +++ b/scripts/core/common.alias @@ -13,8 +13,8 @@ # repurposes certain commands that feisty meow does a little differently. define_yeti_alias cls='clear_colormap; clear' -define_yeti_alias copy='\cp -i -v ' -define_yeti_alias cp='\cp -i -v ' +define_yeti_alias copy='\cp -i -v' +define_yeti_alias cp='\cp -i -v' define_yeti_alias del='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' define_yeti_alias deltree='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' define_yeti_alias df='\df -mh' @@ -45,13 +45,13 @@ define_yeti_alias l='perl $FEISTY_MEOW_SCRIPTS/files/summing_dir.pl' define_yeti_alias ls='ls -HhFC $color_add' define_yeti_alias lsd='ls -hl' define_yeti_alias md='mkdir' -define_yeti_alias move='mv -i -v ' -define_yeti_alias mv='\mv -i -v ' +define_yeti_alias move='mv -i -v' +define_yeti_alias mv='\mv -i -v' define_yeti_alias netcp='rsync -avz' define_yeti_alias notepad='gedit' define_yeti_alias pwd="/bin/pwd|sed -e 's/^\/home\/$USER/~/'" define_yeti_alias rd='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl' -define_yeti_alias ren='\mv -v -i ' +define_yeti_alias ren='\mv -v -i' define_yeti_alias rm='perl $FEISTY_MEOW_SCRIPTS/files/safedel.pl' define_yeti_alias rmdir='perl $FEISTY_MEOW_SCRIPTS/files/zapdirs.pl' define_yeti_alias s='echo "##############"' diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 68ba8cb1..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.