-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
130 lines (100 loc) · 3.54 KB
/
bashrc
File metadata and controls
130 lines (100 loc) · 3.54 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# .bashrc
# User specific aliases and functions
# Add whatever you want to see after logging in here.
# Specify that ^D won't log you out.
set -o ignoreeof
# make vi the command-line editor
# comment out to use emacs mode (the default)
set -o vi
# Uncomment to deny `talk' and `write' requests
# mesg n
alias l="ls -CF"
if [[ `uname -s` = "Linux" ]] ; then
alias ls="ls --color=auto"
fi
alias r="fc -s"
alias h="history"
alias rm="rm -i"
alias mv="mv -i"
alias cp="cp -i"
alias ls="ls -G"
alias cls="clear"
alias ...="cd ../.."
alias ....="cd ../../.."
alias eucassh="ruby ~/chef/euca_ssh.rb"
alias euca_scp_secret="ruby ~/chef/euca_scp_secret.rb"
alias b="bundle exec"
alias swaps="find . -type f -name *.sw[op]"
# set prompt, though maybe already done in /etc/bashrc
# see man or info pages for special characters (\u, etc.)
if [ -f ~/.bash_prompt ]; then
. ~/.bash_prompt
else
export PS1="\w\n$ "
fi
#use vim
export EDITOR="vim"
# Perforce BS
export P4PORT=tcp:perflax01:1666
export P4CHARSET=utf8
# Setup rbenv
export PATH="$PATH:$HOME/.rbenv/bin"
eval "$(rbenv init -)"
## # Setup Java/Android Development
## export ANT_HOME=/usr/local/opt/ant
## export MAVEN_HOME=/usr/local/opt/maven
## export GRADLE_HOME=/usr/local/opt/gradle
## export ANDROID_HOME=/usr/local/opt/android-sdk/
## export ANDROID_NDK_HOME=/usr/local/opt/android-ndk
## export PATH=${ANDROID_HOME}/build-tools/$(ls $ANDROID_HOME/build-tools | sort | tail -1):${ANDROID_HOME}/platform-tools:${ANDROID_HOME}/tools:${GRADLE_HOME}/bin:${MAVEN_HOME}/bin:${ANT_HOME}/bin:$PATH
## # Setup GO installed by Homebrew
## export GOPATH=$HOME/go
## export PATH="$PATH:$GOPATH/bin"
## export PATH="$PATH:/usr/local/opt/go/libexec"
preexec () {
if [ -d "$1" ]; then
cd $1
return 0;
else
:;
fi
}
preexec_invoke_exec () {
[ -n "$COMP_LINE" ] && return # do nothing if completing
[ "$BASH_COMMAND" = "$PROMPT_COMMAND" ] && return # don't cause a preexec for $PROMPT_COMMAND
local this_command=`HISTTIMEFORMAT= history 1 | sed -e "s/^[ ]*[0-9]*[ ]*//"`;
preexec "$this_command"
}
trap 'preexec_invoke_exec' DEBUG
export PATH="$HOME/.node/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
###export DOCKER_HOST=tcp://192.168.59.103:2376
###export DOCKER_CERT_PATH=/Users/andrew/.boot2docker/certs/boot2docker-vm
###export DOCKER_TLS_VERIFY=1
export PATH=/Users/andrew/development/ingrope:$PATH
LUNCHY_DIR=$(dirname `gem which lunchy`)/../extras
if [ -f $LUNCHY_DIR/lunchy-completion.bash ]; then
. $LUNCHY_DIR/lunchy-completion.bash
fi
#docker-machine status default | grep Running &> /dev/null
#if [ $? -eq 0 ]; then
# eval "$(docker-machine env default)"
#fi
# Put /usr/local/bin before /usr/bin because we want anything from Homebrew to have priority
export PATH=/usr/local/bin:$PATH
## # source activate.sh from python autoenv project (automatically runs .env scripts in any directory)
## source /usr/local/bin/activate.sh
## # when this shell starts, if there is a .env file execute it through autoenv - autoenv misses scripts if a shell is started in the directory in question
## autoenv_init
## #if [ -f ./.env ]; then
## #fi
# Use brew installed openssl before using the system one
export PATH=/usr/local/opt/openssl/bin:$PATH
# Add brew coreutils to path
export PATH=/usr/local/opt/coreutils/libexec/gnubin:$PATH
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Add chromium depot_tools to Path
export PATH="$PATH:$HOME/development/depot_tools"
export PATH="$PATH:$HOME/tools"
[ -f ~/.fzf.bash ] && source ~/.fzf.bash