This file contains hidden or 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
Show hidden characters
{ | |
"auto_complete_commit_on_tab": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Theme - Nil/Tubnil.tmTheme", | |
"default_line_ending": "unix", | |
"dummy": true, | |
"ensure_newline_at_eof_on_save": true, | |
"font_size": 12.0, | |
"highlight_line": true, | |
"highlight_modified_tabs": true, |
This file contains hidden or 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
start() { | |
case "$1" in | |
mysql) | |
# cd /usr/local/Cellar/mysql/5.5.25 ; /usr/local/Cellar/mysql/5.5.25/bin/mysqld_safe & | |
/usr/local/bin/mysql.server start | |
;; | |
postgresql) | |
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start | |
# to install postgres gem: env ARCHFLAGS="-arch x86_64" gem install pg | |
;; |
This file contains hidden or 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
# return the current git branch name | |
parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/' | |
} | |
# return the string of state of the branch | |
parse_git_dirty() { | |
D="$(git status 2> /dev/null | tail -n1 | awk '{ print $1 }' )" | |
if [ "$D" = "nothing" ] ; then | |
echo -e "(clean) " |