-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not show path tittle terminer #60
Comments
Use You will probably find a hidden code in your original PS1 which sends a message to the terminal about the current folder. Copy that code into the new |
here is ps1 when i use echo "$PS1" | vi -R - #export PS1="${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m] [^[[36m]$git_branch[^[[31m]$git_dirty[^[(B^[[0m]$" It have error "[^[[36m] ^[[31m][^[(B^[[0m]". |
That's not an error, but ^[ is the escape character, not literally ^[. You can probably replace it with \033 or \x1b, although it might depend on your exact shell/version. |
What you showed above is You need to find the value of Then you need to combine the old |
PS1="[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a]$PS1[$txtcyn]$git_branch[$txtred]$git_dirty[$txtrst]$" this is my PS1, for those who have some issue |
When use PS1 = export PS1="${debian_chroot:+($debian_chroot)}[\033[01;32m]\u@\h[\033[00m]:[\033[01;34m]\w[\033[00m] [$txtcyn]$git_branch[$txtred]$git_dirty[$txtrst]$ "
below bashrc,
Teminer lose path folder
The text was updated successfully, but these errors were encountered: