-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbash_profile.in
42 lines (33 loc) · 979 Bytes
/
bash_profile.in
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
# eval "$(chef shell-init bash)"
# export PATH="$PATH:/Applications/VMware Fusion.app/Contents/Library"
export PATH=$PATH:$HOME/bin
export JAVA_HOME="$(/usr/libexec/java_home)"
#if [ (id gsa_x > /dev/null) ]; then
# export AWS_DEFAULT_PROFILE=govcloud
#else
# export AWS_DEFAULT_PROFILE=pburkholder
#fi
#
[ -x $HOME/.bashrc ] && \
source $HOME/.bashrc
# Development env stuff
if [ -d ~/.nvm ]; then
export NVM_DIR=~/.nvm
source $(brew --prefix nvm)/nvm.sh
fi
# cloud.gov script
export PATH="$HOME/Projects/cloud-gov/cg-scripts:$PATH"
# Switch audio with `brew install switchaudio-osx'
alias qc35='SwitchAudioSource -s "Bose QuietComfort 35"'
alias soundlink='SwitchAudioSource -s "Bose SoundLink Wireless Mobile speaker"'
spaces2underscore() {
for i in *\ *; do
new=$(echo $i | sed -e 's/ /_/g')
mv "$i" $new
done
}
ssh-piv() {
export OSXSC_LIB=/usr/lib/ssh-keychain.dylib
[ $# -gt 0 ] && ssh-add -d -s $OSXSC_LIB
ssh-add -s $OSXSC_LIB
}