aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
blob: b92a0f33bfd7d2635e3cd22b5fef0dc482fde879 (plain)
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
#
# ~/.bashrc
#

source "$HOME/.macos"
source "$HOME/.env"
source "$HOME/.path"

# If not running interactively, don't do anything
[[ $- != *i* ]] && return

PS1='[\u@\h \W]\$ '

source "$HOME/.aliases"
source "$HOME/.fzfrc"

[ -r "$HOME/.bash_local" ] && source "$HOME/.bash_local"

if command -v fish > /dev/null; then
    __FISH_IS_ACTIVE="$__FISH_IS_ACTIVE"
    if [[ -z "$BASH_EXECUTION_STRING" && -z "$__FISH_IS_ACTIVE" ]]
    then
        shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
        exec env __FISH_IS_ACTIVE=1 SHELL="$(which fish)" fish $LOGIN_OPTION
    fi
    unset __FISH_IS_ACTIVE
fi