diff --git a/bash_aliases b/bash_aliases index 28dc2d9..66980ea 100755 --- a/bash_aliases +++ b/bash_aliases @@ -22,7 +22,7 @@ alias backgammon='backgammon -r -pb' # put 'cattodo' in $PROMPT_COMMAND to use alias cattodo='if [[ $CATTODO_LAST_WD != $PWD ]]; then if [[ -r .todo ]]; then cat .todo; fi; CATTODO_LAST_WD=$PWD; fi' alias cdshowgitstatus='if [[ $CDSHOWGITSTATUS_LAST_WD != $PWD ]]; then if [[ -d .git ]]; then git status; fi; CDSHOWGITSTATUS_LAST_WD=$PWD; fi' -#PROMPT_COMMAND="$PROMPT_COMMAND;cdshowgitstatus" +#PROMPT_COMMAND="cdshowgitstatus;$PROMPT_COMMAND" function prompt_ps1_git_branch() { if [[ -e /usr/bin/git && "$PCGB_LAST_WD" != "$PWD" ]]; then diff --git a/cron-rest-eyes b/cron-rest-eyes index 378d0e2..dd51d37 100755 --- a/cron-rest-eyes +++ b/cron-rest-eyes @@ -3,11 +3,11 @@ export DISPLAY=:0 # no message if one is displayed already -if [[ "$(ps -efww | grep -v grep | grep gxmessage)" != "" ]]; then +if [[ "$(ps -efww | grep gxmessage | grep -v grep)" != "" ]]; then exit fi # no message if xscreensaver active -if [ "$(ps -efww | grep -v grep | grep xscreensaver)" != "" ]; then +if [ "$(ps -efww | grep xscreensaver | grep -v grep)" != "" ]; then exit fi # no message if gnome-screensaver active