-
Notifications
You must be signed in to change notification settings - Fork 108
/
Copy path.bash_profile
27 lines (21 loc) · 1.17 KB
/
.bash_profile
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
# ~/.bash_profile: executed by bash(1) for interactive login shells.
# echo '*** this is .bash_profile' # dbg
# On macOS - New iTerm windows/tabs run this file, but NOT .bashrc
# On JupyterHub - new terminals do NOT run this file, ONLY .bashrc
# Note that the traditional Unix design idea was to have a user's session
# contain a _single_ login shell, with all one-time actions taken there, and
# all subsequent interactive shells started as child processes of that one,
# thus inheriting its setup. Those interactive shells would then only load
# .bashrc. However, OSX starts each new terminal as a login shell, and
# JupyterLab terminals are also login shells. So it makes sense to configure
# this file to load .bashrc directly, and put most user configuration logic
# into .bashrc.
#############################################################################
# macOS specific config here
# iterm2 integration
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
#############################################################################
# include .bashrc if it exists - contains all other config
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi