Merge branch 'master' of ssh://holtrop.homelinux.com/files

This commit is contained in:
josh committed 2011-11-20 17:30:56 -05:00
commit 8efdef91b0
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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
+2 -2
View File
@@ -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