-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile
More file actions
73 lines (58 loc) · 1.95 KB
/
bash_profile
File metadata and controls
73 lines (58 loc) · 1.95 KB
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
70
71
72
#########################
# ENVIRONMENT VARIABLES #
#########################
export GOPATH=/usr/local/go
export GRAILS_HOME=$HOME/soft/grails-1.3.7
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_55.jdk/Contents/Home
export PYTHON_HOME=/Library/Frameworks/Python.framework/Versions/3.4/bin
export PATH=$PYTHON_HOME:$PATH:/usr/local/sbin:$HOME/bin:$GRAILS_HOME/bin:$JAVA_HOME/bin
# MELI's environment variables that I cannot make public on GitHub!
source ~/meli-env.sh
# MacPorts Installer addition on 2013-01-11_at_12:07:12: adding an appropriate PATH variable for use with MacPorts.
#export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
##############################
# APPS TO EXECUTE AT STARTUP #
##############################
# memcached
if [ -z "$(pgrep memcached)" ]
then
memcached -d -m 256 -l 127.0.0.1 -p 11211
fi
# redis
if [ -z "$(pgrep redis)" ]
then
redis-server &
fi
# NVM & SDKMAN
[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh
[[ -s $HOME/.sdkman/bin/sdkman-init.sh ]] && source $HOME/.sdkman/bin/sdkman-init.sh
###########
# ALIASES #
###########
alias vi='vim'
alias ls='ls -lahG'
alias grep='grep --color'
alias egrep='egrep --color'
alias fgrep='fgrep --color'
alias gitk='gitk > /dev/null 2> /dev/null'
alias server='python -m SimpleHTTPServer'
alias json='python -m json.tool'
################
# APPS TUNNING #
################
# Auto grails version switcher
source ~/grails_autopick.sh
# Autocomplete for git
source ~/.git-completion.bash
source ~/.git-prompt.sh
# To prevent git from prompting me for a commit message on automatic merges
export GIT_MERGE_AUTOEDIT=no
# Git branch name in the prompt. See http://en.wikipedia.org/wiki/Tput
green=$(tput setaf 2)
purple=$(tput setaf 5)
red=$(tput setaf 1)
yellow=$(tput setaf 3)
bblue=$(tput setab 4)
reset=$(tput sgr0)
PS1='\[$yellow\]\u\[$red\]@\[$green\]\h\[$reset\]:\w\[$purple\]\[$bblue\]$(__git_ps1)\[$reset\] \$ '