-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshenv
62 lines (44 loc) · 1.55 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
# -*- mode: sh; -*-
# Locale
export LC_ALL=en_US.UTF-8
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache
export XDG_DATA_HOME=$HOME/.local/share
unset ALTERNATE_EDITOR
export EDITOR='emacsclient -t'
export PAGER='less -M'
export VISUAL=$EDITOR
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
# Haskell Cabal & Stack integration
path+=($HOME/.local/bin $HOME/.cabal/bin)
# Rust setup
export CARGO_HOME=$XDG_CACHE_HOME/cargo
export RUSTUP_HOME=$XDG_CACHE_HOME/rustup
path+=($CARGO_HOME/bin)
# New fancy error output format for rust-nightly
export RUST_NEW_ERROR_FORMAT=true
# Node
export NVM_DIR=$XDG_CACHE_HOME/nvm
# Yarn
path+=($HOME/.yarn/bin)
(( $+commands[yarn] )) && path+=$(yarn global bin 2>/dev/null)
# Google Cloud SDK
path+=($HOME/.local/share/google-cloud-sdk/bin)
# $HOME, sweet $HOME
export PATH
export ZSH_CACHE_DIR=$XDG_CACHE_HOME/zsh
export HISTFILE=$ZSH_CACHE_DIR/zhistory
# StarDict dictionaries location
export STARDICT_DATA_DIR=$HOME/.local/share/stardict
# Some SDL games don't handle multiple display correctly in fullscreen
export SDL_VIDEO_FULLSCREEN_DISPLAY=0
# Store ZSH files under XDG_CONFIG_HOME base directory.
# This works by symlinking ~/.zshenv to ~/.config/zsh/.zshenv (this file).
export ZDOTDIR=$XDG_CONFIG_HOME/zsh
# Custom enviroment variables
[[ -f $ZDOTDIR/custom.zshenv ]] && source $ZDOTDIR/custom.zshenv
# Completions
fpath+=($ZDOTDIR/completions)
# Enable Erlang/Elixir REPL history
export ERL_AFLAGS="-kernel shell_history enabled"