-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot-bashrc
More file actions
45 lines (35 loc) · 1.32 KB
/
dot-bashrc
File metadata and controls
45 lines (35 loc) · 1.32 KB
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
#!/bin/bash
if [[ -f /bin/zsh ]]; then
exec zsh
fi
###############################################################################
# For non-interactive bash shells
###############################################################################
# If not running interactively, don't do anything
#
# ZSH already ignores non-interactive runs by using `.zshenv` for them rather
# than `.zshrc`.
[[ $- != *i* ]] && return
###############################################################################
# The .profile config for both Bash and Zsh.
###############################################################################
# shellcheck source=/dev/null
. ~/.profile
# For some reason bash doesn't pick it up from .profile with that syntax. on
# zsh it works just fine.
for script in "$HOME/dotfiles/dot-profile.d/"*; do
if [ -f "$script" ]; then
# shellcheck source=/dev/null
. "$script"
fi
done
PROMPT_COMMAND="$PROFILE_PROMPT_COMMANDS; $PROMPT_COMMAND"
###############################################################################
# Startup programs in the terminal using eval.
###############################################################################
# Starship
# https://github.com/starship/starship
eval "$(starship init bash)"
# zoxide + fzf
# https://github.com/ajeetdsouza/zoxide
eval "$(zoxide init --cmd cd bash)"