-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbash_profile
48 lines (38 loc) · 1.28 KB
/
bash_profile
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
#PS4='+ $(date "+%s.%N")\011 '
#exec 3>&2 2>/tmp/bashstart.$$.log
#set -x
if [[ "$OSTYPE" == "darwin"* ]]; then
eval $(/opt/homebrew/bin/brew shellenv)
fi
source "$HOME/.bashrc"
[ "${PATH#*/usr/local/sbin:}" == "$PATH" ] && export PATH="/usr/local/sbin:$PATH"
# Pyenv config. See https://github.com/pyenv/pyenv
export PYENV_ROOT="$HOME/.pyenv"
[ "${PATH#*$PYENV_ROOT/bin:}" == "$PATH" ] && export PATH="$PYENV_ROOT/bin:$PATH:"
eval "$(pyenv init -)"
# Virtualenvwrapper
export WORKON_HOME="$HOME/code/venv"
export VIRTUALENVWRAPPER_PYTHON=$(which python)
pyenv virtualenvwrapper_lazy
# Goenv config. See: https://github.com/go-nv/goenv/blob/master/INSTALL.md
export GOENV_ROOT="$HOME/.goenv"
if [ "${PATH#*$GOENV_ROOT/bin:}" == "$PATH" ]; then
export PATH="$GOENV_ROOT/bin:$PATH"
eval "$(goenv init -)"
export PATH="$(go env GOPATH)/bin:$PATH"
fi
export GOPATH="$(go env GOPATH)"
#
# FZF
export FZF_COMPLETION_TRIGGER='**'
# Options to fzf command
#export FZF_COMPLETION_OPTS='-x --border'
export FZF_COMPLETION_OPTS='-x --border --info=inline --height=60%'
export FZF_PREVIEW_COLUMNS=120
export FZF_PREVIEW_LINES=60
if [ -f "$HOME/.fzf.bash" ]; then
source "$HOME/.fzf.bash"
_fzf_setup_completion path nvim open cat bat cp mv rm dir tree cd ls vim
fi
#set +x
#exec 2>&3 3>&-