-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathenv
44 lines (39 loc) · 1.33 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
# vim: ft=bash
export NERDFONT=1
export ANDROID_HOME=/usr/local/Cellar/android-sdk/
export FZF_DEFAULT_COMMAND='rg --files --ignore-file ~/.adshell/rgignore'
export FZF_DEFAULT_OPTS="\
--layout=reverse \
--info=inline \
--height=90% \
--multi \
--preview '([[ -f {} ]] && (bat --style=numbers --color=always {} || cat {})) || ([[ -d {} ]] && (tree -C {} | less)) || echo {} 2> /dev/null | head -200' \
--prompt='∼ ' \
--bind '?:toggle-preview' \
--bind 'shift-down:preview-down' \
--bind s'hift-up:preview-up' \
--bind pg'dn:preview-page-down' \
--bind pgu'p:preview-page-up' \
--bind 'ctrl-a:select-all' \
--bind 'ctrl-y:execute-silent(echo {+} | pbcopy)' \
--bind 'ctrl-e:execute(echo {+} | xargs -o vim)' \
"
# Add adshell/bin to the PATH
export PATH=~/.adshell/bin:$PATH
# Add brew sbin to PATH
if type brew > /dev/null 2>&1 || [[ -e /usr/local/bin/brew ]] ; then
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
fi
if type brew >/dev/null 2>&1; then
source $(brew --prefix asdf)/libexec/asdf.sh
fi
# Add GOBIN to PATH
if [[ -d $HOME/go/bin ]]; then
export PATH=$PATH:$HOME/go/bin
fi
# If GNU CoreUtils is installed, make them the default
if type gls > /dev/null 2>&1; then
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
alias ls='ls --color --group-directories-first'
fi