currently this is how my terminal bar looks like, it's showing my full name and the hostname. I'd like to configure it so that this is removed and it only shows the directory, but I don't know how.
3 Answers
Since you're using zsh you can edit your ~/.zshrc file to include this:
DISABLE_AUTO_TITLE="true"
See here for details: https://github.com/ohmyzsh/ohmyzsh/issues/5700#issuecomment-311998546
-
1
-
1
-
Will enabling this setting hide the "users/<username>" in all terminal outputs? Jan 17 at 21:24
If you go into Terminal and press Cmd + ,
, it will open up the preferences. Click the Profiles tab on the top.
Then click the Window tab.
Then you can set a title and uncheck the "Working directory", "Active Process", and everything else under the Title section.
This will make it look like this:
I followed these steps on my MAC
Terminal
: [return]echo "${PS1}"
[return] and insert the result within your original question (OQ).echo "${PS1}"
into the terminal and got this output${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)
. Didn't seem to change anything.Terminal
: [return]echo "$(git_prompt_info)"
[return] and insert the result within your original question (OQ)