-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
48 lines (40 loc) · 1.67 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
# sourced on every invocation of zsh
# https://github.com/doronbehar/dotfiles/blob/master/.zshenv
# https://wiki.zshell.dev/docs/guides/customization#disabling-system-wide-compinit-call-ubuntu
if [[ ${OSTYPE} == linux* ]] && [[ -e /etc/debian_version ]]; then
# Disable keyboard changes and compinit in /etc/zsh/zshrc.
# zi takes care of this.
DEBIAN_PREVENT_KEYBOARD_CHANGES=1
skip_global_compinit=1
fi
# https://zameermanji.com/blog/2012/12/30/using-vim-as-manpager/
export EDITOR="vim"
export MANPAGER="vim +MANPAGER -R --not-a-term -"
export MANWIDTH="999"
export VISUAL="$EDITOR"
export BLOCKSIZE="K" # show blocks as kilobytes
unset MAILCHECK # don't check for mails
export HISTORY_IGNORE="([bf]g|clear|exit|history|incognito|l|l[adfls]|pwd|x|\#*)"
export ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
# ignore ones with a length greater than 80 -- thanks to https://github.com/Aloxaf
export ZSH_AUTOSUGGEST_HISTORY_IGNORE='?(#c80,)'
# https://github.com/zsh-users/zsh-autosuggestions
export ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=20 # recommended
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=242"
export ZSH_AUTOSUGGEST_STRATEGY=match_prev_cmd # Match on previous history command also
export ZSH_AUTOSUGGEST_USE_ASYNC=1
# pip
export PATH=$PATH:$HOME/.local/bin
# Treat these characters as part of a word.
[[ -n "$WORDCHARS" ]] || export WORDCHARS='*?_-.[]~&;!#$%^(){}<>'
# CMake
export CMAKE_EXPORT_COMPILE_COMMANDS=ON
export MAKEFLAGS="-j$(nproc)"
if (( $+commands[ninja] )); then
export CMAKE_GENERATOR=Ninja
fi
# volta (JS toolchain as code)
# https://docs.volta.sh/guide/getting-started
export VOLTA_HOME=$HOME/.volta
export PATH=$VOLTA_HOME/bin:$PATH
# vim: ft=zsh sw=2 ts=2 et