forked from richo/dotfiles
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework work script to use git includes
Also recolor prompt
- Loading branch information
Rich Healey
committed
Apr 27, 2012
1 parent
13763b2
commit ea417c8
Showing
4 changed files
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
#!/bin/sh | ||
|
||
if [ -z "$1" ]; then | ||
echo "usage: $0 no[work]" | ||
exit 1 | ||
fi | ||
|
||
rm -f "/tmp/$USER-nowork" | ||
rm -f "/tmp/$USER-work" | ||
touch "/tmp/$USER-$1" | ||
case $1 in | ||
"work") | ||
rm -f "/tmp/$USER-nowork" | ||
cat > "/tmp/$USER-work" <<-EOF | ||
[user] | ||
name = Rich Healey | ||
email = richard.healey@99designs.com | ||
EOF | ||
;; | ||
"nowork") | ||
rm -f "/tmp/$USER-work" | ||
touch "/tmp/$USER-nowork" | ||
;; | ||
*) | ||
echo "usage: $0 no[work]" | ||
exit 1;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters