I had problems with colours not showing in iTerm2 for me. I tried a few fixes I found online which didn't work and now my serial number of my laptop is showing in iTerm & Terminal. Anyone know how to remove this?
ITerm2 & Terminal show the Mac serial code
itermterminal
Related Question
- How to remap tmux split pane keys
- Sending Control+Alt+
to terminal in iTerm2 - MacOS – iTerm2 does not show username, machine name, time
- How to switch off sharing of history between iTerm2 tabs when setopt command not found
- Upgrade bash without using the terminal to fix iterm issue dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
- Bash history not initially remembered with iterm2
Best Answer
You want to modify something called the prompt or PS1. You can see the current value by typing
echo $PS1
To get rid of the first part you don't like and leave only the user name typeexport PS1="\u"
If you want to persist the next time you open the terminal, you would write that line in ~/.bashrc A detailed walk through is here http://osxdaily.com/2006/12/11/how-to-customize-your-terminal-prompt/