Answer the question
In order to leave comments, you need to log in
OS X - how to change input prompt in Terminal.app?
Hello, I recently got a Mac Mini for work tasks. I want to set up my terminal prompt to look like this: [current directory (yellow)] [current GIT branch (blue)] [time in hh:mm format (green)].
I saw a similar article regarding the .bashrc file for Linux. Is there a similar option for OS X? If yes, how can this be done?
No experience with OS X so far.
Answer the question
In order to leave comments, you need to log in
It doesn't matter if you have a mac or not. bash is the same. Here is the guide to get you started. In general, the settings for displaying the input prompt are stored in the PS1 environment variable (in the bash).
https://wiki.archlinux.org/index.php/Bash/Prompt_c...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question