[konsole] [Bug 327720] Konsole should remember it was following symlinks on session restore, new tab

Ahmad Samir bugzilla_noreply at kde.org
Tue May 22 08:54:13 UTC 2018


https://bugs.kde.org/show_bug.cgi?id=327720

Ahmad Samir <a.samirh78 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
                 CC|                            |a.samirh78 at gmail.com
         Resolution|---                         |FIXED

--- Comment #1 from Ahmad Samir <a.samirh78 at gmail.com> ---
This has been fixed in konsole > 2.12.4[1]; you may use OSC 7 (OSC is ESC] or
\033] or \e]) escape sequences to let the shell tell konsole about the $PWD.

Something like this should work:
- Get your current/default PROMPT_COMMAND:
$ echo $PROMPT_COMMAND
on my system it looks like this:
printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"

- Then append the the OSC 7 escape sequence to it:
PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}"
"${PWD/#$HOME/\~}"; printf "\033]7;file://%s\007" "${PWD}"'

You may then put that that line in e.g. ~/.bashrc and PWD will be set to the
current working directory even if it's a symlink.

[1] https://bugs.kde.org/show_bug.cgi?id=336618

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list