-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
83 lines (67 loc) · 2.26 KB
/
.zshenv
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
#################
### Setup Env ###
#################
# Set language
export LANG=en_US.UTF-8
# Set compiler
export CC=clang
export CXX=clang++
# XDG Base Directory Specification
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
# Github Repos
export REPOS="$HOME/C0D3/"
export GIT_USER="PedroZappa"
# Dotfiles & Scripts
export DOTFILES="$HOME/.dotfiles"
export SCRIPTS="$DOTFILES/scripts"
# Add ~/.local/bin to PATH
export PATH="$HOME/.local/bin:$PATH"
# Add 42's ~/homebrew/bin to PATH
# export PATH="$HOME/sgoinfre/homebrew/bin:$PATH"
# Add ~/.dotfiles/scripts to PATH
export PATH="$SCRIPTS:$PATH"
# Add homebrew to PATH
if [[ $USER == "passunca" ]]; then
export PATH="$HOME/sgoinfre/homebrew/bin:$PATH"
export PATH="$HOME/sgoinfre/passunca/homebrew/bin:$PATH"
export PATH="$HOME/sgoinfre/passunca/homebrew/sbin:$PATH"
export PATH="$HOME/sgoinfre/rust/build/x86_64-unknown-linux-gnu/stage0/bin:$PATH"
elif [[ $USER == "zedr0" ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
elif [[ $USER == "zedro" ]]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
export PATH="/home/linuxbrew/.linuxbrew/bin:$PATH"
export PATH="/home/linuxbrew/.linuxbrew/sbin:$PATH"
fi
# colored GCC warnings and errors
export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
# Preferred applications
export EDITOR="nvim"
export TERMINAL="kitty"
export BROWSER="chromium"
###################
### zsh History ###
###################
export HISTFILE=$XDG_CACHE_HOME/zsh/history
export HISTSIZE=10000
export SAVEHIST=10000
export HISTCONTROL=ignorespace
###################
### Clean up ~/ ###
###################
export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority"
########################################
# Load Version Manager (for Node.js) ###
########################################
#
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
. "$HOME/.cargo/env"
# Golang environment variables
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
# Update PATH to include GOPATH and GOROOT binaries
export PATH=$GOPATH/bin:$GOROOT/bin:$HOME/.local/bin:$PATH