-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_profile
55 lines (44 loc) · 1.49 KB
/
dot_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
49
50
51
52
53
54
55
#!/bin/sh
# local bin
export PATH="$HOME/.local/bin:$HOME/bin:$PATH"
# Jetbrains
export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts"
# manually installed atuin
export PATH="$HOME/.atuin/bin:$PATH"
# homebrew
case "$(uname -s)" in
Darwin)
if [ -f /opt/homebrew/bin/brew ]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
export FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
# gnu tooling
GNU_PATH=$HOMEBREW_PREFIX/opt/coreutils/libexec/gnubin
GNU_PATH=$GNU_PATH:$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnubin
GNU_PATH=$GNU_PATH:$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnubin
export PATH=$GNU_PATH:$PATH
GNU_MANPATH=$HOMEBREW_PREFIX/opt/coreutils/libexec/gnuman
GNU_MANPATH=$GNU_MANPATH:$HOMEBREW_PREFIX/opt/gnu-sed/libexec/gnuman
GNU_MANPATH=$GNU_MANPATH:$HOMEBREW_PREFIX/opt/gnu-tar/libexec/gnuman
export MANPATH=$GNU_MANPATH:$MANPATH
# trash-cli is keg only
export PATH="/opt/homebrew/opt/trash/bin:$PATH"
fi
;;
esac
# cargo / rust
export PATH="$HOME/.cargo/bin:$PATH"
# pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PIPENV_PYTHON="$PYENV_ROOT/shims/python"
if command -v pyenv > /dev/null; then
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
fi
# fnm
command -v fnm > /dev/null && eval "$(fnm env --use-on-cd)"
# misc env vars
export ATUIN_INIT_FLAGS='--disable-up-arrow'
export PAGER='less -RF --mouse'
export DELTA_PAGER="$PAGER"
export EDITOR='nvim'