You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can fine more info about configuration customization in this comment
prompt_dir() {
prompt_segment blue $CURRENT_FG'%C'# get last directory in CWD# Or get last 2 directories in CWD (e.g. /dir-one/dir-two)
prompt_segment blue $CURRENT_FG'%2C'
prompt_segment blue $CURRENT_FG'%2~'
}
I know this question has been asked and answered a lot.
But I simply haven't been able to successfully do this:
By default the prompt shows the entire path of the current directory.
I'd just like to show the current directory instead of the whole path.
If that isn't possible, I'll settle for removing everything except the user and host.
The text was updated successfully, but these errors were encountered: