-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
94 lines (77 loc) · 2.16 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
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
# ~/.profile: executed by the command interpreter for login shells.
# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
# exists.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
# cabal-install
if [ -d "$HOME/.cabal/bin" ] ; then
PATH="$HOME/.cabal/bin:$PATH"
fi
if [ -d "$HOME/Library/Haskell/bin" ] ; then
PATH="$HOME/Library/Haskell/bin:$PATH"
fi
# npm
if [ -d "$HOME/.npm-global" ] ; then
PATH="$HOME/.npm-global/bin:$PATH"
fi
# 410
#OSDIR="/afs/cs/academic/class/15410-f10/bin"
#if [ -d "${OSDIR}" ]
#then
#PATH="${OSDIR}:$PATH"
#fi
# fink
if [ -r "/sw/bin/init.sh" ]
then
source "/sw/bin/init.sh"
fi
# macports
if [ -d "/opt/local/var/macports" ]
then
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
export MANPATH=/opt/local/share/man:$MANPATH
if [ -f "/opt/local/etc/bash_completion" ]
then
. /opt/local/etc/bash_completion
fi
fi
# homebrew
if [ -d "$HOME/homebrew" ]
then
eval "$($HOME/homebrew/bin/brew shellenv)"
#export HOMEBREW_BUILD_FROM_SOURCE=1
export HOMEBREW_VERBOSE=1
fi
# mac vs code
if [ -d "/Applications/Visual Studio Code.app/Contents/Resources/app/bin" ]
then
export PATH=$PATH:"/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
fi
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
export XTERMCMD=uxterm
export AFSHOME=/afs/andrew/usr/jwatzman
export EDITOR=vim
export DEVKITPRO=$HOME/wii/devkitPRO
export DEVKITPPC=$DEVKITPRO/devkitPPC
export GTK_IM_MODULE=xim
export QT_IM_MODULE=xim
unset XMODIFIERS
export UNISONLOCALHOSTNAME='charybdis.local'
export BASH_SILENCE_DEPRECATION_WARNING=1