-
Notifications
You must be signed in to change notification settings - Fork 0
/
.exports
45 lines (35 loc) · 1.22 KB
/
.exports
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
#!/bin/bash
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export TERM=xterm-256color
# gnu
if which brew > /dev/null 2>&1; then
export PATH="$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/grep/libexec/gnubin:$PATH"
export PATH="$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin:$PATH"
fi
# make neovim the default editor
if which nvim > /dev/null 2>&1; then
export EDITOR='nvim';
export VISUAL='nvim';
fi
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
show_file_or_dir_preview="if [ -d {} ]; then eza --tree --color=always {} | head -200; else bat -n --color=always --line-range :500 {}; fi"
export FZF_CTRL_T_OPTS="--preview '$show_file_or_dir_preview'"
export FZF_ALT_C_OPTS="--preview 'eza --tree --color=always {} | head -200'"
# jenv
if which jenv > /dev/null 2>&1; then
export JAVA_HOME="$(jenv prefix)"
eval "$(jenv init -)"
fi
export GOPATH=~/go
export PATH="$GOPATH/bin:$PATH"
# tmuxifier
export PATH="$HOME/.config/tmux/plugins/tmuxifier/bin:$PATH"
export TMUXIFIER_LAYOUT_PATH="$HOME/.config/tmux/layouts"
# python
export PATH="/Library/Frameworks/Python.framework/Versions/3.10/bin:${PATH}"
# nvs
export NVS_HOME="$HOME/.nvs"
[ -s "$NVS_HOME/nvs.sh" ] && . "$NVS_HOME/nvs.sh"