summaryrefslogtreecommitdiff
path: root/johnlepikhin/home/bash.scm
diff options
context:
space:
mode:
authorEvgenii Lepikhin <e.lepikhin@corp.mail.ru>2022-07-31 08:11:20 +0300
committerEvgenii Lepikhin <e.lepikhin@corp.mail.ru>2022-07-31 08:11:20 +0300
commit926f2e7d8927e98cf320d844b48ea4f6ca8f98ea (patch)
treeb26060601088ad94c3d1df818a9bc3a26eb19066 /johnlepikhin/home/bash.scm
parentfix: vkteams version (diff)
downloadjohnlepikhin-guix-channel-926f2e7d8927e98cf320d844b48ea4f6ca8f98ea.tar.gz
feat: bash sets window title
Diffstat (limited to 'johnlepikhin/home/bash.scm')
-rw-r--r--johnlepikhin/home/bash.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/johnlepikhin/home/bash.scm b/johnlepikhin/home/bash.scm
index 66a5d7b..619ca1b 100644
--- a/johnlepikhin/home/bash.scm
+++ b/johnlepikhin/home/bash.scm
@@ -52,7 +52,8 @@ function setup_bash_prompt () {
__guix_env=\"$__guix_env_color[env]$__reset_color \"
fi
local __prompt_tail='$'
- export PS1=\"$__user_and_host $__cur_location $__git_branch_color$__git_branch$__reset_color$__guix_env$__prompt_tail \"
+ local __xwindow_title=\"\\033]0;$__cur_location — shell\\007\"
+ export PS1=\"${__xwindow_title}${__user_and_host} ${__cur_location} ${__git_branch_color}${__git_branch}${__reset_color}${__guix_env}${__prompt_tail} \"
}
setup_bash_prompt")