-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmodify_dot_bashrc
More file actions
30 lines (28 loc) · 992 Bytes
/
Copy pathmodify_dot_bashrc
File metadata and controls
30 lines (28 loc) · 992 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
{{- /* chezmoi:modify-template */ -}}
{{- $current := .chezmoi.stdin | replaceAllRegex `(?ms)\n*^# >>> cross-platform terminal workspace >>>$\n.*?^# <<< cross-platform terminal workspace <<<$\n?` "" -}}
{{- $current = $current | replaceAllRegex `[\r\n]+$` "" -}}
{{ $current }}
# >>> cross-platform terminal workspace >>>
# Keep Bash as the system login shell, but enter Nushell for interactive use.
case $- in
*i*) ;;
*) return ;;
esac
# Make user-local tools and zoxide available when Bash is used as a fallback.
if [ -d "$HOME/.local/bin" ]; then
case ":$PATH:" in
*:"$HOME/.local/bin":*) ;;
*) export PATH="$HOME/.local/bin:$PATH" ;;
esac
fi
if command -v zoxide >/dev/null 2>&1; then
eval "$(zoxide init bash)"
fi
if [ -z "${DOTFILES_NO_AUTO_NU:-}" ]; then
if [ -x "$HOME/.local/bin/nu" ]; then
exec "$HOME/.local/bin/nu"
elif command -v nu >/dev/null 2>&1; then
exec nu
fi
fi
# <<< cross-platform terminal workspace <<<