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
{{ message }}
This repository has been archived by the owner on May 8, 2021. It is now read-only.
Im currently using a minimalist PS1 and have no way to quickly know the current working dir, having it in the window title would help making less mistakes on my end :)
I'd roll a patch by myself but don't have time atm :(
The text was updated successfully, but these errors were encountered:
I have this in my .bashrc to set the window title (tested with i3 and Sway):
# After each command finishes, we set the terminal window title to the
# current working directory. If, for example, Vim sets the window title
# to the file's name and we exit Vim, the window title becomes the
# current directory again.
# There has to be a space between $(pwd) and \007 so the sequence is ended properly,
# otherwise the window title would only be changed sometimes.
# These escape sequences are documented in man 4 console_codes.
# \033 is octal for ESC in ASCII, \007 is BEL
PROMPT_COMMAND="$PROMPT_COMMAND;echo -ne \"\033]0;\$(pwd) \007\""
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Im currently using a minimalist PS1 and have no way to quickly know the current working dir, having it in the window title would help making less mistakes on my end :)
I'd roll a patch by myself but don't have time atm :(
The text was updated successfully, but these errors were encountered: