diff options
author | Toby Vincent <tobyv13@gmail.com> | 2021-07-04 12:52:49 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2021-07-04 12:52:49 -0500 |
commit | 188007ec17e0fd2e361f23791b24d0a589cda507 (patch) | |
tree | 38ff4ae21860a1c6e16ea50e39d38c30352738ae /sh/env.sh | |
parent | f926e0548ca224831a8919807c1f9d4a07b1297b (diff) |
refactor: cleaned up env vars
Diffstat (limited to 'sh/env.sh')
-rw-r--r-- | sh/env.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sh/env.sh b/sh/env.sh new file mode 100644 index 0000000..6b50ad2 --- /dev/null +++ b/sh/env.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash + +# https://github.com/junegunn/fzf#respecting-gitignore +export FZF_BASE="${DOTFILES}/fzf" +export FZF_PREVIEW_COMMAND="bat --style=numbers,changes --wrap never --color always {} || cat {} || tree -C {}" +export FZF_CTRL_T_OPTS="--min-height 30 --preview-window down:60% --preview-window noborder --preview '($FZF_PREVIEW_COMMAND) 2> /dev/null'" + +export BAT_CONFIG_PATH="${DOTFILES}/bat.conf" +export MANPAGER="sh -c 'col -bx | bat -l man -p'" + +# Path +PATH=$PATH:$HOME/.local/bin:$HOME/.dotnet/tools:$HOME/.cargo/bin:$DOTFILES/scripts |