I want to use iTerm with my default bash terminal because there is a lot of customization that i have done to my .bash_profile and I don't want to lose it or perform all the hard work again.
How to use iTerm along with the default bash terminal
bashiterm
Related Question
- How to find delay when launching new Terminal (iTerm)
- Bash: Searching with ls
- MacOS – In iTerm, how can I change alt+delete to ignore slashes
- How to configure the Terminal app with bash and iTerm2 with zshell and oh the zsh
- ITerm spits out text every time I start a new session – why, and how to stop it
- Upgrade bash without using the terminal to fix iterm issue dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Best Answer
You are mixing up a couple of things here. Note there is no such thing as bash terminal.
iTerm and Terminal are applications that start up a defined program - by default it is
/usr/bin/login
. This program starts a shell (listed in/etc/shells
) by default this is/bin/bash
.bash reads
~/.bash_profile
if it is started by login (or with a-l
parameter), bash does not care if it is started by iTerm or Terminal. (There might be environment variables set depending on what starts bash e.g. ITERM_* from iTerm and TERM_PROGRAM by both)iTerm and Terminal store their defaults in different places (both within
~/Library/Preferences
) and do not write to~/.bash*
files.Thus your
~/.bash_profile
will be run by both iTerm and Terminal and will not be affected by them except if you test on certain variables