-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbash_profile
More file actions
134 lines (102 loc) · 3.81 KB
/
bash_profile
File metadata and controls
134 lines (102 loc) · 3.81 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
131
132
133
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# set colors, edit or swtich colors here
if [ -f "${HOME}/setups/bash_colors" ]; then
source ${HOME}/setups/bash_colors
fi
# include aliases, edit aliases here
if [ -f "${HOME}/setups/bash_alias" ]; then
source ${HOME}/setups/bash_alias
fi
# include functions, edit functions here
if [ -f "${HOME}/setups/bash_func" ]; then
source ${HOME}/setups/bash_func
fi
# set history characteristics
export HISTCONTROL=ignoredups:erasedups # no duplicate entries
export HISTSIZE=5000 # big big history
export HISTFILESIZE=100000 # big big history
shopt -s histappend # append history file on logout
shopt -s histverify # edit history recall
# remove highlighting pasted text
bind "set enable-bracketed-paste off"
# set to allow vi edits on the command line
set -o vi
# set path as window title
PROMPT_COMMAND='echo -ne "\033];${PWD}\007"'
# git prompt
#if [ -f ~/.git-prompt.sh ]; then
# . ~/.git-prompt.sh
#fi
# bash git prompt
GIT_PROMPT_THEME=Single_line_Minimalist_2
#GIT_PROMPT_THEME=
#GIT_PROMPT_THEME=Custom
#GIT_PROMPT_THEME=Default
if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then
GIT_PROMPT_ONLY_IN_REPO=1
source $HOME/.bash-git-prompt/gitprompt.sh
fi
# git completion
if [ -f ~/.git-completion.bash ]; then
. ~/.git-completion.bash
elif [ -f "/usr/local/etc/bash_completion.d/git-completion.bash" ]; then
. /usr/local/etc/bash_completion.d/git-completion.bash
fi
# prompt with git
PS1="\[$Cyan\]\h\[$Yellow\]\[$Yellow\](\W)\[\033[m\]\[$BBlue\]\[$BWhite\]-> \[$Color_Off\]"
#PS1="$Cyan\h$Yellow(\W)$BBlue\$(__git_ps1)$BWhite> $Color_Off"
# Setting initial paths for myself
# Base path
export PATH=.:${HOME}/bin:${HOME}/perl:${HOME}/scripts:${HOME}/.local/bin:$PATH
# Setting path for LaTex from MacTeX
export PATH=/Library/TeX/texbin:$PATH
# Setting path and env for HomeBrew s
if [ -f /usr/bin/xcrun ]; then
export SDKROOT=$(xcrun --show-sdk-path)
fi
export PATH=/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/3.2.0/bin:$PATH
export PATH=/Users/laufers/.local/share/gem/ruby/3.2.0/bin:$PATH
# export PATH=/usr/local/opt/ruby\@2/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH
# export PATH=/usr/local/opt/ruby/bin:$PATH
# Setting path for Sublime Text
export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"
# Setting CDPATH
# export CDPATH=:$HOME:/Users/laufers/Dropbox\ \(Univ.\ of\ Oklahoma\)/OULibraries
# turn off Apple zsh message
export BASH_SILENCE_DEPRECATION_WARNING=1
# ahj - remove the default Python environment artifact "(base)" from prompt
PS1=$(echo "$PS1" | perl -pe 's/^\(base\)\s*//' )
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/laufers/anaconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/laufers/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/laufers/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/laufers/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# ahj - remove the default Python environment artifact "(base)" from prompt
PS1=$(echo "$PS1" | perl -pe 's/^\(base\)\s*//' )
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
export MAMBA_EXE='/usr/local/bin/micromamba';
export MAMBA_ROOT_PREFIX='/Users/laufers/micromamba';
__mamba_setup="$("$MAMBA_EXE" shell hook --shell bash --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__mamba_setup"
else
alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate
fi
unset __mamba_setup
# <<< mamba initialize <<<
micromamba activate
PS1=$(echo "$PS1" | perl -pe 's/^\(base\)\s*//' )