diff options
-rw-r--r-- | bashrc | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -156,6 +156,13 @@ define_ps1() } +define_window_title() +{ + printf "%s:" "$(hostname)" + pwd | sed "s,$HOME,~," +} + + tell_about_exit_code() { local exit_code="$1" @@ -172,7 +179,7 @@ export PROMPT_COMMAND=prompt_command prompt_command() { tell_about_exit_code "$?" PS1="$(define_ps1)" - set_window_title "Terminal" + set_window_title "$(define_window_title)" } |