-
Notifications
You must be signed in to change notification settings - Fork 3
/
bashrc
84 lines (69 loc) · 2.14 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
78
79
80
81
82
83
#
# ~/.bashrc
#
[[ $- != *i* ]] && return
set -o vi
alias ls='ls --color=auto'
alias vim='nvim'
alias la='ls -lah --color=auto'
alias watchpdf='latexmk -pdf -pvc'
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
reflow() {
DIR=$(basename $(pwd))
mkdir -p ~/Dropbox/reflow/$DIR
k2pdfopt $* -dpi 267 -w 1536 -h 2048 -wrap -hy -om 0.3 -o ~/Dropbox/reflow/$DIR/$*
}
check_conda_env () {
if [ ! -z "$CONDA_DEFAULT_ENV" ]; then
printf -- "%s" "`basename $CONDA_DEFAULT_ENV`"
else
printf -- "%s" ""
fi
}
BASE16_SHELL=$HOME/.config/base16-shell/
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
PS1=" (\$(check_conda_env)) \[\e[31m\]\W ❱\[\e[32m\]❱\[\e[33m\]❱\[\e(B\]\[\e[m\] \e[0m"
export EDITOR="vim"
export TERM=screen-256color
export NCARG_ROOT="/opt/ncl"
export PETSC_DIR="/opt/petsc"
export PETSC_ARCH="linux-c-opt"
export JULIA_NUM_THREADS=16
export PATH="$HOME/.local/bin:$PATH:/opt/visit/bin:$HOME/.gem/ruby/2.4.0/bin:/opt/ncl/bin"
export PATH="/home/bzq/perl5/bin${PATH:+:${PATH}}"
export PERL5LIB="/home/bzq/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"
export PERL_LOCAL_LIB_ROOT="/home/bzq/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"
export PERL_MB_OPT="--install_base \"/home/bzq/perl5\""
export PERL_MM_OPT="INSTALL_BASE=/home/bzq/perl5"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/local/miniconda/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/local/miniconda/etc/profile.d/conda.sh" ]; then
. "/opt/local/miniconda/etc/profile.d/conda.sh"
else
export PATH="/opt/local/miniconda/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# --------------------------
# Machine specific rc files
# --------------------------
if [ -f "$HOME/.hyakrc" ]; then
source $HOME/.hyakrc
fi
if [ -f "$HOME/.h2orc" ]; then
source $HOME/.h2orc
fi
if [ -f "$HOME/.cheyennerc" ]; then
source $HOME/.cheyennerc
fi
if [ -f "$HOME/.windowsrc" ]; then
source $HOME/.windowsrc
fi