-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
77 lines (63 loc) · 2.06 KB
/
bashrc
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
#!/usr/local/bin/bash
# git-completion
if [ -f ${HOME}/.git-completion.bash ]; then
source ${HOME}/.git-completion.bash
fi
# git-prompt
if [ -f ${HOME}/.git-prompt.sh ]; then
source ${HOME}/.git-prompt.sh
GP='$(__git_ps1 "(\[\e[0;32m\]%s\[\e[m\]) ")'
else
GP=
fi
# iTerm shell integration
ITERM_SH_INTEGRATION=${HOME}/.itermrc/shell_integration/iterm2_shell_integration.bash
if [ -f ${ITERM_SH_INTEGRATION} ]; then
source ${ITERM_SH_INTEGRATION}
fi
# fancy PS1
export PS1="\[\e[0;35m\]\W\[\e[m\] ${GP}⌁ "
# aliases
alias vim="nvim"
alias ll="ls -lah"
alias bfg="java -jar ~/.local/bin/bfg-1.13.0.jar"
alias jenkins-local="docker run --rm -u root -p 8080:8080 \
-v jenkins-data:/var/jenkins_home -v /var/run/docker.sock:/var/run/docker.sock \
-v \$HOME:/home jenkinsci/blueocean"
# custom workflows in ~/.local/bin
alias abe="abaco-track-executions.sh"
alias jt="jobs-track.sh"
# uninstall and reinstall openssl
# fixes "ssl module in Python is not available" error on pip install
alias reinstall-openssl="""
brew uninstall --ignore-dependencies openssl && \
rm -rf /usr/local/etc/openssl* && \
brew update && brew upgrade && \
brew install https://github.com/tebelorg/Tump/releases/download/v1.0.0/openssl.rb
"""
# git track vimwiki contents
alias vw="git --git-dir=$HOME/vimwiki/.git/ --work-tree=$HOME/vimwiki/"
# vi forever
set -o vi
# ls colors
export CLICOLOR=1
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/.local/nvim-linux64/bin:$PATH"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/eho/mambaforge/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/home/eho/mambaforge/etc/profile.d/conda.sh" ]; then
. "/home/eho/mambaforge/etc/profile.d/conda.sh"
else
export PATH="/home/eho/mambaforge/bin:$PATH"
fi
fi
unset __conda_setup
if [ -f "/home/eho/mambaforge/etc/profile.d/mamba.sh" ]; then
. "/home/eho/mambaforge/etc/profile.d/mamba.sh"
fi
# <<< conda initialize <<<
. "$HOME/.cargo/env"