-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
122 lines (91 loc) · 2.97 KB
/
.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
# 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
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
. "$HOME/.cargo/env"
. "$HOME/.atuin/bin/env"
||||||| Stash base
# the default umask is set in /etc/profile; for setting the umask
# for ssh logins, install and configure the libpam-umask package.
#umask 022
echo $(date) .profile SHELL=$SHELL >> "$HOME/.profile_log"
# 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
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH"
fi
if [ -d "$HOME/.pyenv" ]; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
fi
if [ -d "$HOME/go" ]; then
export GOPATH="$HOME/go"
export PATH="$GOPATH/bin:$PATH"
fi
if [ -d "/usr/local/go/bin" ]; then
export PATH="/usr/local/go/bin:$PATH"
fi
if [ -d "$HOME/.emacs.d/bin" ]; then
export PATH="$HOME/.emacs.d/bin:$PATH"
fi
if [ -d "$HOME/.cargo/bin" ]; then
fi
if [ -d "$HOME/.krew/bin" ]; then
export PATH="$HOME/.krew/bin:$PATH"
fi
#########################################
# Non Bash Specific ENV Vars
export LANG=en_AU.UTF-8
export LANGUAGE=en_AU.UTF-8
export EDITOR=vim
export VISUAL=vim
# cache pip-installed packages to avoid re-downloading
export PIP_DOWNLOAD_CACHE=$HOME/.pip/cache
export PYTEST_ADDOPTS='--pdbcls=IPython.terminal.debugger:TerminalPdb'
export PATH="$HOME/bin:$HOME/.local/bin:$PATH:/usr/local/sbin"
export LD_LIBRARY_PATH=$HOME/lib:$LD_LIBRARY_PATH
export LIBRARY_PATH=$HOME/lib:$LIBRARY_PATH
export CPATH=$HOME/include
export PATH="$HOME/.poetry/bin:$PATH"
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
test -f ~/.pythonrc.py && export PYTHONSTARTUP=~/.pythonrc.py
if type module 2&> /dev/null; then
module use /g/data/v10/public/modules/modulefiles
module use /g/data/v10/private/modules/modulefiles
fi
# TODO Fix, don't want to execute recursively by accident
if [[ $HOSTNAME =~ ^gadi-login.* ]]; then
exec ~/bin/fish
fi
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
# Added by Toolbox App
export PATH="$PATH:/home/omad/.local/share/JetBrains/Toolbox/scripts"
. "$HOME/.rye/env"
. "$HOME/.cargo/env"