aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
blob: a37d60f7bca3d05a55ca6cf3bd11b9c85a46965d (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
#

[ "$(uname)" = Darwin ] && 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:-0}
    if [[ -z ${BASH_EXECUTION_STRING} && $__FISH_IS_ACTIVE -eq 0 ]]
    then
        shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
        exec env __FISH_IS_ACTIVE=1 fish $LOGIN_OPTION
    fi
    export __FISH_IS_ACTIVE=0
fi