-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
69 lines (52 loc) · 2.05 KB
/
.bash_profile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
# Git branch in prompt.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1=" 😒 \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] ~ "
export PATH=$PATH:/usr/local/bin
export PATH=/usr/local/mysql/bin:$PATH
export PATH=$PATH:~/.composer/vendor/bin
export EDITOR='vim'
export CLICOLOR=1
export JAVASCRIPT_DRIVER_BROWSER=firefox
export VBOX_HOME=/Applications/VirtualBox.app/Contents/MacOS
set -o vi
export LSCOLORS=GxFxCxDxBxegedabagaced
alias grom="git rebase origin/master"
alias girom="git rebase -i origin/master"
alias griom="girom"
alias g="ghwd"
alias t="tree -C -I node_modules"
gifify() {
if [[ -n "$1" ]]; then
if [[ $2 == '--good' ]]; then
ffmpeg -i $1 -r 10 -vcodec png out-static-%05d.png
time convert -verbose +dither -layers Optimize -resize 600x600\> out-static*.png GIF:- | gifsicle --colors 128 --delay=5 --loop --optimize=3 --multifile - > $1.gif
rm out-static*.png
else
ffmpeg -i $1 -s 600x400 -pix_fmt rgb24 -r 10 -f gif - | gifsicle --optimize=3 --delay=3 > $1.gif
fi
else
echo "proper usage: gifify <input_movie.mov>. You DO need to include extension."
fi
}
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin
export NODE_ENV=development
export PATH="/usr/local/sbin:$PATH"
export PATH="$HOME/.fastlane/bin/fastlane_lib:$PATH"
export NVM_DIR="/Users/jakebuob/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
alias mongo.start='mongod --config /usr/local/etc/mongod.conf'
alias mongo.stop='killall mongod'
alias nginx.start='sudo nginx'
alias nginx.stop='sudo nginx -s stop'
alias nginx.reload='sudo nginx -s reload'
alias redis.start='redis-server /usr/local/etc/redis.conf'
alias redis.stop='killall redis-server'