Merge branch 'master' of ssh://holtrop.homelinux.com/files
This commit is contained in:
commit
8efdef91b0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user