Summary: | Konsole should remember it was following symlinks on session restore, new tab | ||
---|---|---|---|
Product: | [Applications] konsole | Reporter: | Chintalagiri Shashank <shashank> |
Component: | general | Assignee: | Konsole Developer <konsole-devel> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | a.samirh78, cpigat242, shashank |
Priority: | NOR | ||
Version: | 2.11.2 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Chintalagiri Shashank
2013-11-17 14:05:40 UTC
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 To clarify, in the printf command one can only use \033] or \e] . |