-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
195 lines (151 loc) · 5.28 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#!/usr/bin/env sh
# Vivek Menon - vvkmnn.xyz
##################################################
##################################################
###################### ####################
################ ##############
############# ####### ###########
########### ######### #########
######### ######## #######
######## ###### ######
####### ###### #####
###### ####### ###### ####
##### ######### ###### ###
##### ####### ###### ###
##### ###### ##### ###
##### ###### #### ###
##### ###### ### ###
##### ###### # ###
###### ###### ####
####### ##### #####
######## ##### ######
########## ##### ########
############ ##### ##########
############## ##### ############
################## ################
##################################################
##################################################
## Environment -------------------------------------
# XDG
export XDG_CONFIG_HOME="$HOME/.config"
# Params
export LANG=en_US.iso88591
export LC_ALL=en_US.UTF-8
export BROWSER=open
# export TERM=xterm
export TERM=xterm-256color
export ARCHEY_LOGO_FILE=$HOME/.logo
export DISPLAY=:0
# Editor
export EDITOR='nvim' # $EDITOR is the default for most shells
export VISUAL=$EDITOR # $VISUAL in case
export ALTERNATE_EDITOR='nvim' # $EDITOR if all else fails
# Prompt
# FIX Not global
# export RPROMPT='v@%M %(?,%F{green}[-_-]%f,%F{red}[ಠ_ಠ]%f)'
# export PROMPT=' ॐ '
# OS=$(uname -s)
case "$(uname -s)" in
Linux)
# Emacs (Doom)
# export PATH="$HOME/.emacs.d/bin:$PATH"
export PATH="$HOME/.config/emacs/bin:$PATH"
;;
Darwin)
# Prompt
# export PURE_PROMPT_SYMBOL="ॐ "
## brew
export PATH="/usr/local/bin:$PATH"
export PATH="/usr/local/sbin:$PATH"
# Brew
export HOMEBREW_CASK_OPTS="--appdir=/Applications"
# tmux
export PATH="/opt/homebrew/bin:$PATH"
# openSSL
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
# llvm
export PATH="/opt/homebrew/opt/llvm/bin:$PATH"
export LDFLAGS="-L/opt/homebrew/opt/llvm/lib"
export CPPFLAGS="-I/opt/homebrew/opt/llvm/include"
# emacs/pdf-tools
# export PKG_CONFIG_PATH=/usr/local/Cellar/zlib/1.2.8/lib/pkgconfig:/usr/local/lib/pkgconfig:/opt/X11/lib/pkgconfig
## Personal ----------------------------------------
export PATH="$HOME/Documents/bin:$PATH"
## brew
export PATH="/usr/local/sbin:$PATH"
## openSSL
export PATH="/usr/local/opt/openssl/bin:$PATH"
# Python
# export python="/usr/bin/python3"
# export PATH=/usr/local/share/python:$PATH
# pipx
export PATH="$PATH:/home/v/.local/bin"
# Python (Anaconda)
export PATH="$HOME/.miniconda/bin:$PATH"
export PATH="/usr/local/anaconda3/bin:$PATH"
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/opt/homebrew/Caskroom/miniconda/base/bin/conda' 'shell.zsh' 'hook' 2>/dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh" ]; then
. "/opt/homebrew/Caskroom/miniconda/base/etc/profile.d/conda.sh"
else
export PATH="/opt/homebrew/Caskroom/miniconda/base/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
# Rust
#. "$HOME/.cargo/env"
# Ruby
export PATH="/usr/local/opt/ruby/bin:$PATH"
# Node (NVM)
# export PATH="$HOME/.nvm/versions/node/v12.1.0/bin:$PATH"
# LaTeX
export PATH="/Library/TeX/texbin:$PATH"
# Emacs (Doom)
# export PATH="$HOME/.emacs.d/bin:$PATH"
export PATH="$HOME/.config/emacs/bin:$PATH"
# Clang
export CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include
# Go
# export GOROOT="$(brew --prefix golang)/libexec"
# export GOPATH=$HOME/Documents/dev/go
# export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
# LLVM
export PATH="/usr/local/opt/llvm/bin:$PATH"
# Go
export GOROOT=/usr/local/Cellar/go/1.13.4/libexec
export GOPATH=$HOME/Documents/dev/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
# MacOS (Brew) Emacs
# export PATH="/Applications/Emacs.app/Contents/MacOS/bin:$PATH"
## Fun ---------------------------------------------
export PATH="/Applications/Alacritty.app/Contents/MacOS/:$PATH"
## Work --------------------------------------------
# PATH="$HOME/Documents/lake/lake-hydra/bin:$PATH"
;;
CYGWIN* | MINGW32* | MSYS* | MINGW*)
echo '[¬_¬] Loading Windows environment...'
;;
esac
# Zsh Theme
# [ -f ~/.theme ] && . ~/.theme
# Source Xorg settings
# TODO Causes some dangerous bugs
# [ -f ~/.xprofile ] && . ~/.xprofile
# GO
# export PATH="$HOME/go/bin:$PATH"
# export GOPATH=$HOME/go/bin
# # Python
# export PATH="$HOME/.local/bin:$PATH"
# export PYTHONPATH=$HOME/.local/bin
# # Emacs (Doom)
# export PATH="$HOME/.emacs.d/bin:$PATH"
# Load
# echo '[¬_¬]...'
# . "$HOME/.cargo/env"