-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_profile.tmpl
More file actions
42 lines (36 loc) · 986 Bytes
/
dot_profile.tmpl
File metadata and controls
42 lines (36 loc) · 986 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
41
42
# if running bash
# zsh reads .zshrc regardless
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
export EDITOR=nvim
export SUDO_EDITOR=$EDITOR
export BROWSER=firefox
export GCC_COLORS=1
export CARGO_TARGET_DIR=$HOME/.cache/cargo_target_dir
prefix_path() {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="$1:$PATH"
;;
esac
}
for bin in $HOME/.fzf/bin $HOME/.cargo/bin $HOME/.local/*/bin $HOME/.local/bin; do
[ -d "$bin" ] && prefix_path "$bin"
done
{{ if eq .chezmoi.os "windows" }}
for bin in /c/tools/neovim/nvim-win64/bin /c/ProgramData/chocolatey/bin "/c/Program Files/CMake/bin" /mingw64/bin; do
[ -d "$bin" ] && prefix_path "$bin"
done
export MANPATH="/mingw64/share/man:$MANPATH"
export MSYS2_ARG_CONV_EXCL=':/*'
export COLUMNS
export XDG_CONFIG_HOME=$HOME/.config
export XDG_STATE_HOME=$HOME/.state
{{ end }}
unset -f prefix_path