-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshenv
110 lines (91 loc) · 3.84 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
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
# .zshenv is sourced on all invocations of the shell, unless the -f option is set.
# It should contain commands to set the command search path, plus other important
# environment variables.
# .zshenv should not contain commands that produce output or assume the shell is
# attached to a tty.
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-$HOME/.config}
export XDG_CACHE_HOME=${XDG_CACHE_HOME:-$HOME/.cache}
# User gem path
type gem >/dev/null && {
export GEM_PATH="$(ruby -e 'print Gem.user_dir')/bin"
}
# $ZDOTDIR is specified in $HOME/.zprofile
typeset -U PATH path
path=("${XDG_CONFIG_HOME}/pyenv/pyenv/bin" "${HOME}/.local/bin" "${XDG_CONFIG_HOME}/tmux/powerline/scripts" "$path[@]" "$GEM_PATH" "${HOME}/.local/share/flatpak/exports/bin" "${HOME}/.local/bin/repos/managesieve")
export PATH
typeset -U FPATH fpath
fpath=("${HOME}/.config/zsh/plugins/zsh-completions/src" "${HOME}/.config/zsh/functions" "${fpath[@]}")
export FPATH
export SHELL=$(which zsh)
export EDITOR="vim"
# Custom shell word boundaries, helpful when CTRL+W on paths.
# without: /
# with : |
export WORDCHARS='*?_-.[]~=&;!#$&(){}<>|'
# better yaourt colors
export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35"
# Set delta as default git pager if available
type delta > /dev/null 2>&1 && export GIT_PAGER=delta
# Set vim as default git editor if available
type vim > /dev/null 2>&1 && export GIT_EDITOR=vim
# less history
export LESSHISTFILE="${XDG_CACHE_HOME}/less/history"
export LESSHISTSIZE=10000
# Use bat as a colorizing pager for man
# https://github.com/sharkdp/bat/#man
type bat > /dev/null 2>&1 && {
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
export MANROFFOPT="-c"
}
# Powerline
# Load powerline python module
typeset -aTU PYTHONPATH pythonpath
pythonpath=("${XDG_CONFIG_HOME}/tmux/powerline" "${HOME}/.local/bin/repos/asciinema")
export PYTHONPATH
export POWERLINE_CONFIG_COMMAND="${XDG_CONFIG_HOME}/tmux/powerline/scripts/powerline-config"
# Pyenv
# https://github.com/pyenv/pyenv#environment-variables
# https://github.com/pyenv/pyenv-virtualenv#special-environment-variables
export PYENV_ROOT="${XDG_CONFIG_HOME}/pyenv"
export PYTHON_BUILD_ARIA2_OPTS="-x 10 -k 1M"
export PYENV_VIRTUALENV_CACHE_PATH="${XDG_CACHE_HOME}/pyenv-virtualenv"
eval "$(pyenv init --path)"
# Sway
export XDG_CURRENT_DESKTOP=sway
# Wayland
# Start Firefox and Thunderbird natively on Wayland
export MOZ_ENABLE_WAYLAND=1
# Remove windows decoration on QT-based apps
export QT_WAYLAND_DISABLE_WINDOWDECORATION=1
# ssh-agent
# This var is also specified in .config/environment.d/10-ssh-agent.conf
# as it is required by .config/systemd/user/ssh-agent.service
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
# Streamdeck configuration file location
export STREAMDECK_UI_CONFIG=~/.config/streamdeck-ui/$(uname -n).json
# LS and EXA time format
export TIME_STYLE="+%d-%m-%Y %H:%M:%S %z"
# Only for workstations mounting an NVIDIA GPU.
#
# Switch to vulkan renderer to fix the flickering issue with nvidia and
# wayland compositors. It requires vulkan-validation-layers [0] and the following
# kernel options:
# nvidia_drm.modeset=1 nvidia.NVreg_RegistryDwords=EnableBrightnessControl=1
# More inspiring workaround here [1].
#
# [0] https://archlinux.org/packages/extra/x86_64/vulkan-validation-layers
# [1] https://github.com/crispyricepc/sway-nvidia/blob/main/wlroots-env-nvidia.sh
lsmod 2>/dev/null | grep -i nvidia 2>&1 >/dev/null && {
export WLR_RENDERER=vulkan
export WLR_NO_HARDWARE_CURSORS=1
export XWAYLAND_NO_GLAMOR=1
}
# minicom: enable colors and metakey
export MINICOM="-m -c on"
# FZF
# https://github.com/junegunn/fzf/blob/master/README.md
export FZF_DEFAULT_OPTS='--tmux 90%,80%'
export FZF_CTRL_T_OPTS="--walker file,dir,hidden"
# Orca-Slicer
# Requested since version 2.2.0
export SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"