-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenv.sh
More file actions
40 lines (25 loc) · 970 Bytes
/
Copy pathenv.sh
File metadata and controls
40 lines (25 loc) · 970 Bytes
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
# shellcheck shell=bash
__path_append_if_dir_exists() {
if [[ -d $1 ]] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$PATH:$1"
fi
}
__path_append_if_dir_exists "$HOME"/bin
__path_append_if_dir_exists "$HOME"/.local/bin
__path_append_if_dir_exists "$HOME"/.poetry/bin
__path_append_if_dir_exists "$HOME"/.fzf/bin
__path_append_if_dir_exists "$HOME"/go/bin
CARGO_ENV="$HOME"/.cargo/env
if [ -f "$CARGO_ENV" ]; then
# shellcheck source=/dev/null
source "$CARGO_ENV"
fi
# ---------------------------------------------------------------------
export VISUAL=vim
export EDITOR="$VISUAL"
# ---------------------------------------------------------------------
export HISTIGNORE='*sudo -S*'
# ---------------------------------------------------------------------
export MAKE_PARALLELIZATION=8
# ---------------------------------------------------------------------
export FZF_DEFAULT_COMMAND='rg --files --hidden --follow --glob "!.git" --no-require-git'