-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bash_profile
executable file
·122 lines (89 loc) · 3.64 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
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
export LSCOLORS=GxFxCxDxBxegedabagaced
export CLICOLOR=1
source /Users/jteoh/Code/utils/aliases
export EDITOR=/usr/bin/vim
export WORKSPACE="~/workspace"
alias ws="cd $WORKSPACE"
export HISTTIMEFORMAT='%x %X '
alias sourcee="source ~/.bash_profile"
alias ll='ls -l'
#http://code-worrier.com/blog/autocomplete-git/
if [ -f ~/.git-completion.bash ]; then
source ~/.git-completion.bash
fi
#GIT ALIASES YAY!
#warning: I overrode the default gs (ghostscript)
alias g="git "
alias gcam="git commit -am "
alias gd="git diff "
alias gl="git log "
alias gpr="git pull --rebase "
alias gs="git status "
alias gsh="git show "
alias gitka="gitk --all &"
#Git branch in prompt.
#http://martinfitzpatrick.name/article/add-git-branch-name-to-terminal-prompt-mac/
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
# required for thefuck to evaluate ps1 - I think experimental mode uses a subshell?
# export -f parse_git_branch
export PS1="\A \u@\h \[\e[1;34m\]\w\[\e[m\] \[\033[32m\]\$(parse_git_branch)\[\033[00m\] \$"
export ASKY_KEY="ezEqjmBbFqdFgbCDJ6WyNyjb/ExuIF3al68r5Lq4k3BfBBabLN3gmloI5PVxrI7aWvv2CCGawpKQ5udL54TGFw=="
# hub is a wrapper for git, with github support
# alias git=hub
alias baggins='cd ~/Code/baggins'
alias perf-analysis='cd ~/Code/aas/analysis && source aliases'
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
eval "$(jenv init -)"
#DB2 setup, based off http://stackoverflow.com/questions/23341171/how-do-i-install-db2-express-c-10-1-on-osx-mavericks
PATH=$PATH:/opt/IBM/db2/V10.1/bin
if [[ -f ~/jteoh/sqllib/db2profile ]]
then
source ~/jteoh/sqllib/db2profile
fi
# jet server
alias jet='ssh jet.cs.ucla.edu'
alias node-jet='ssh [email protected]'
# Ignite
export IGNITE_HOME="/Users/jteoh/Code_Libraries/apache-ignite-fabric-2.3.0-bin"
# Set sbt options for BigSummary experiments (courtesy of Shagha)
export SBT_OPTS="-Xmx4G -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Xss2M"
export PATH="/Users/username/.pyenv:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
# export THEFUCK_DEBUG=true
# eval $(thefuck --alias --enable-experimental-instant-mode)
eval $(thefuck --alias)
# script to define environment variables for z3 within the PyExZ3 class project.
# source "/Users/jteoh/Code/_archived/classes/PyExZ3/jteoh_setup.sh"
alias build-perfdebug="build/mvn -pl core package -DskipTests"
alias code="cd ~/Code"
alias up="cd .."
### TMUX history preservation configs, taken from https://askubuntu.com/questions/339546/how-do-i-see-the-history-of-the-commands-i-have-run-in-tmux
# avoid duplicates..
export HISTCONTROL=ignoredups:erasedups
# append history entries..
shopt -s histappend
# After each command, save and reload history
# jteoh: disabled because it started getting annoying
# export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"
# added by Anaconda3 2018.12 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '/Users/jteoh/anaconda3/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "/Users/jteoh/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/jteoh/anaconda3/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="/Users/jteoh/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
# auto-import gnureadline for bash arrow functionality etc
export PYTHONSTARTUP=~/.startup.py