diff options
| author | Evgenii Lepikhin <e.lepikhin@corp.mail.ru> | 2022-07-31 08:11:20 +0300 |
|---|---|---|
| committer | Evgenii Lepikhin <e.lepikhin@corp.mail.ru> | 2022-07-31 08:11:20 +0300 |
| commit | 926f2e7d8927e98cf320d844b48ea4f6ca8f98ea (patch) | |
| tree | b26060601088ad94c3d1df818a9bc3a26eb19066 /johnlepikhin/home/bash.scm | |
| parent | fix: vkteams version (diff) | |
| download | johnlepikhin-guix-channel-926f2e7d8927e98cf320d844b48ea4f6ca8f98ea.tar.gz | |
feat: bash sets window title
Diffstat (limited to 'johnlepikhin/home/bash.scm')
| -rw-r--r-- | johnlepikhin/home/bash.scm | 3 |
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") |
