aboutsummaryrefslogtreecommitdiff
path: root/.bashrc
blob: ecece7271d3ed02eeab120783e6a473a1d0843cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#
# ~/.bashrc
#

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"

if command -v fish > /dev/null; then
    if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} ]]
    then
        shopt -q login_shell && LOGIN_OPTION='--login' || LOGIN_OPTION=''
        exec fish $LOGIN_OPTION
    fi
fi