From 8654ead31bac51ab90a6d6eb0a0132cb57c1eb92 Mon Sep 17 00:00:00 2001 From: Steve Mao Date: Sun, 14 Feb 2016 12:06:58 +1100 Subject: .bash_prompt: Improve title This will set the title of the current terminal tab to the name of the folder you are in rather than the whole path. Closes #623. --- .bash_prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bash_prompt b/.bash_prompt index 7afdb79..cb018fd 100644 --- a/.bash_prompt +++ b/.bash_prompt @@ -104,7 +104,7 @@ else fi; # Set the terminal title to the current working directory. -PS1="\[\033]0;\w\007\]"; +PS1="\033]0; ${PWD##*/}\007"; PS1+="\[${bold}\]\n"; # newline PS1+="\[${userStyle}\]\u"; # username PS1+="\[${white}\] at "; -- cgit v1.2.3