We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
$1
1 parent 9ce199c commit bdfb987Copy full SHA for bdfb987
plugins/available/xterm.plugin.bash
@@ -30,7 +30,11 @@ precmd_xterm_title() {
30
}
31
32
preexec_xterm_title() {
33
- set_xterm_title "$(_short-command "${1:-}") {$(_short-dirname)} (${SHORT_USER:-${USER}}@${SHORT_HOSTNAME:-${HOSTNAME}})"
+ local command_line="${BASH_COMMAND:-${1:-}}"
34
+ local directory_name short_command
35
+ directory_name="$(_short-dirname)"
36
+ short_command="$(_short-command "${command_line}")"
37
+ set_xterm_title "${short_command} {${directory_name}} (${SHORT_USER:-${USER}}@${SHORT_HOSTNAME:-${HOSTNAME}})"
38
39
40
case "${TERM:-dumb}" in
0 commit comments