-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env
59 lines (48 loc) · 1.76 KB
/
.env
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
if command -v nvim &>/dev/null; then
export EDITOR=nvim
export PAGER="nvim +Man!"
export MANPAGER="nvim +Man!"
elif command -v vim &>/dev/null; then
export EDITOR=vim
elif command -v vi &>/dev/null; then
export EDITOR=vi
fi
if [[ -d $HOME/workspace/github.com/git/git/contrib/ ]]; then
export _GIT_CONTRIB="$HOME/workspace/github.com/git/git/contrib/"
elif [[ -d /opt/homebrew/share/git-core/contrib/ ]]; then
export _GIT_CONTRIB='/opt/homebrew/share/git-core/contrib/'
elif [[ -d /usr/local/share/git/contrib/ ]]; then
export _GIT_CONTRIB='/usr/local/share/git/contrib/'
fi
if [[ -d "${_GIT_CONTRIB}" ]]; then
export GITPAGER="${_GIT_CONTRIB}diff-highlight/diff-highlight | less -RFX"
else
export GITPAGER="less -RFX"
fi
if [[ ${TERM_PROGRAM:-} == "vscode" || ${TERM_PROGRAM:-} == "trae" ]]; then
if type trae >/dev/null; then
export EDITOR="trae --wait -"
else
export EDITOR="code --wait -"
fi
#export GIT_PAGER="$EDITOR" # this looks terrible
export GIT_CONFIG_COUNT=3
export GIT_CONFIG_KEY_0="diff.tool"
export GIT_CONFIG_VALUE_0="vscode"
export GIT_CONFIG_KEY_1="merge.tool"
export GIT_CONFIG_VALUE_1="vscode"
export GIT_CONFIG_KEY_2="color.pager"
export GIT_CONFIG_VALUE_2="false"
fi
export RIPGREP_CONFIG_PATH=~/.config/ripgrep/rgignore
export FD_CONFIG_PATH=~/.config/fd/fdignore
export HOMEBREW_PREFIX="/opt/homebrew";
export HOMEBREW_CELLAR="/opt/homebrew/Cellar";
export HOMEBREW_REPOSITORY="/opt/homebrew";
# show Sapling changed/modified files in prompt
#export SHOW_DIRTY_STATE=1
#vpn
#export http_proxy=http://sysproxy.wal-mart.com:8080
#export https_proxy=https://walmart.zoom.us/j/96619946927?from=addon
#export no_proxy='*.wal-mart.com,*.walmart.net,*.walmart.com,localhost,127.0.0.1'
[[ -r ~/.paths.sh ]] && source ~/.paths.sh