-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshenv
31 lines (26 loc) · 930 Bytes
/
.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
SCRIPT_DIR="$HOME"
export BROWSER='brave-browser'
export EDITOR='setsid emacsclient -a "" -c'
export VISUAL='setsid emacsclient -a "" -c'
if [[ $(uname) == "Darwin" ]]; then
eval $(/opt/homebrew/bin/brew shellenv)
export PATH="/Applications/Emacs.app/Contents/MacOS/bin:$PATH"
else
export PATH="$HOME/.local/bin:$HOME/bin:$HOME/node_modules/.bin:$PATH"
fi
export PAGER='less'
export FZF_DEFAULT_OPTS="--bind=ctrl-j:down,ctrl-k:up,alt-j:down,alt-k:up,ctrl-s:kill-line"
export FZF_DEFAULT_COMMAND='fd --hidden --no-ignore-vcs --color never --type f'
if [[ -z "$LANG" ]]; then
export LANG='en_US.UTF-8'
fi
if [ -n "$DESKTOP_SESSION" ];then
eval $(gnome-keyring-daemon --start)
export SSH_AUTH_SOCK
fi
# Start the gpg-agent if not already running
if ! pgrep -x -u "${USER}" gpg-agent >/dev/null 2>&1; then
gpg-connect-agent /bye >/dev/null 2>&1
fi
export GO111MODULE=on
source "$SCRIPT_DIR/.zshenv_extra"