Skip to content

Commit

Permalink
combine blocks which have same if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
adam8157 committed Mar 28, 2013
1 parent 19df9df commit c37f356
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,12 @@ then
. ~/.bashrc
fi

# mpd
# daemon and X
if [ "$(tty)" = "/dev/tty1" ]
then
start-daemon mpd
fi

# offlineimap
if [ "$(tty)" = "/dev/tty1" ]
then
start-daemon mra-guard
fi

# startx
if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]
then
startx
[ -z "$DISPLAY" ] && startx
fi

0 comments on commit c37f356

Please sign in to comment.