-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zprofile
90 lines (67 loc) · 2.57 KB
/
.zprofile
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
#!/bin/zsh
# .zprofile is only sourced when zsh is run as login shell.
# This file should set commands and variables which should be set once or which don't need to be updated frequently:
# 1. environment variables to configure tools (flags for compilation, data folder location, etc.)
# 2. configuration which execute commands (like SCONSFLAGS="--jobs=$(( $(nproc) - 1 ))") as it may take some time to execute.
# Adds `~/.local/bin` and all subdirs to $PATH
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
export PATH="$PATH:${$(find ~/.local/bin -type d -o -printf %p:)%%:}"
# unsetopt PROMPT_SP
# Default variables
export EDITOR="nvim"
export VISUAL=$EDITOR
export TERMINAL="foot"
export WM="dwm"
export READER="zathura"
export BROWSER="firefox"
export MANPAGER="nvim +Man!"
export DEV_HOME="$HOME/projects"
# export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
# XDG Base Directory locations
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
# Cleaning
export PASSWORD_STORE_DIR="$XDG_DATA_HOME/password-store"
export LESSHISTFILE="$XDG_DATA_HOME/less_history"
# Go
export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH="$DEV_HOME/golang"
export PATH=$PATH:$GOPATH/bin
# Rust / Cargo
export CARGO_HOME="$XDG_DATA_HOME/cargo"
# Ruby
# export GEM_HOME="$XDG_DATA_HOME/gem"
export GEM_SPEC_CACHE="$XDG_CACHE_HOME/gem"
export SOLARGRAPH_CACHE="$XDG_CACHE_HOME/solargraph"
export PATH="$PATH:$HOME/.rvm/bin"
export BUNDLE_USER_CACHE="$XDG_CACHE_HOME/bundle"
# Tmux / tpm
export TMUX_PLUGIN_MANAGER_PATH="$XDG_CONFIG_HOME/tmux/plugins/"
# MySQL
export MYSQL_HISTFILE="$XDG_DATA_HOME/mysql_history"
# PostgreSQL
export PSQL_HISTORY="$XDG_DATA_HOME/psql_history"
# Redis
export REDISCLI_HISTFILE="$XDG_DATA_HOME/rediscli_history"
# sqlite
export SQLITE_HISTORY="${XDG_DATA_HOME}/sqlite_history"
# zsh + tools
export ZDOTDIR="$XDG_CONFIG_HOME/zsh" # Change default folder of zsh config.
export ZINIT_HOME="$XDG_DATA_HOME/zinit/zinit.git"
export ZIM_HOME="$XDG_DATA_HOME/zim"
# Wget
export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
# FZF
export FZF_DEFAULT_OPTS="--height 75% --layout=reverse --cycle --border"
# security
# export GPG_TTY=$(tty)
# Fixing misbehaving Java applications
export AWT_TOOLKIT="MToolkit wmname LG3D" # May have to install wmname
export _JAVA_AWT_WM_NONREPARENTING=1
# Openssl fix
export PATH=$HOME/openssl/bin:$PATH
export LD_LIBRARY_PATH=$HOME/openssl/lib
export LC_ALL="en_US.UTF-8"
export LDFLAGS="-L /home/wittyjudge/openssl/lib -Wl,-rpath,/home/wittyjudge/openssl/lib"