-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.zshenv
20 lines (16 loc) · 841 Bytes
/
.zshenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export PAGER=less
export EDITOR=vim
#### Setup
# If $ZDOTDIR is defined, we keep the definition, otherwise we define $ZDOTDIR
# to equal $HOME/.zsh. This is so that any other .z* files can refer to files
# in the current $ZDOTDIR.
ZDOTDIR=${ZDOTDIR:-$HOME/.zsh}
fpath=($ZDOTDIR/zfunctions $fpath) # Add a custom directory for my completion functions.
typeset -U fpath
# "Outer Terminal" and "Screen Session ID" are only defined while in Gnu Screen
# but both of these variables would be exported into the environment of a new
# terminal emulator launched from inside screen. We unset them if the terminal
# is set to anything that doesn't begin with screen.
[[ "$TERM" != (screen*) ]] && unset INTERM && unset STY
# When we're running in WSL, set DISPLAY
[[ $(uname -r) =~ Microsoft && -z "$DISPLAY" ]] && export DISPLAY=127.0.0.1:0.0