-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zprofile
54 lines (46 loc) · 1.82 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
#!/bin/zsh
#
# Zsh profile file. Runs on login. Env vars are set here
#
# Adds `~/.local/bin` to $PATH
export PATH="$PATH:$HOME/.local/bin:$HOME/.local/bin/statusbar"
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="firefox"
export LAUNCHER="dmenu"
# Colorful less
export LESS=-R
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
export LESS_TERMCAP_me="$(printf '%b' '[0m')"
export LESS_TERMCAP_so="$(printf '%b' '[01;36m')"
export LESS_TERMCAP_se="$(printf '%b' '[0m')"
export LESS_TERMCAP_us="$(printf '%b' '[1;32m')"
export LESS_TERMCAP_ue="$(printf '%b' '[0m')"
# XDG Standards
export XDG_STATE_HOME="$HOME/.local/state"
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
# GoLang stuff
export GOPATH="${XDG_DATA_HOME:-$HOME/.local/share}/go"
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin:/usr/local/go/bin
# App specs
export _JAVA_AWT_WM_NONREPARENTING=1 # Fix for Java applications in dwm
export ANDROID_SDK_HOME="${XDG_CONFIG_HOME}/android"
export AWT_TOOLKIT=MToolkit
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
export GTK_THEME="Nordic"
export GTK2_RC_FILES="${XDG_CONFIG_HOME}/gtk-2.0/gtkrc-2.0"
export HISTFILE="${XDG_DATA_HOME}/history"
export INPUTRC="${XDG_CONFIG_HOME}/inputrc"
export LESSHISTFILE="-"
export MOZ_USE_XINPUT2="1" # Mozilla smooth scrolling/touchpads.
export npm_config_prefix="$HOME/.local"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME}/password-store"
export QT_QPA_PLATFORMTHEME="gtk2" # Have QT use gtk2 theme.
export SUDO_ASKPASS="$HOME/.local/bin/dmenupass"
export WGETRC="${XDG_CONFIG_HOME}/wget/wgetrc"
export ZDOTDIR="${XDG_CONFIG_HOME}/zsh"
# Start graphical server on tty1 if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx