Set terminal title
Anirudh Oppiliappan x@icyphox.sh
Mon, 05 Jul 2021 20:12:21 +0530
1 files changed,
4 insertions(+),
0 deletions(-)
jump to
M
bash/.bashrc.d/99-prompt.bash
→
bash/.bashrc.d/99-prompt.bash
@@ -55,3 +55,7 @@ }
PS1='\n$(prompt_pwd)$(git_branch)\n▲$(rootornot) ' PS2="> " + +# terminal title +trap 'printf "\033]2;$(history 1 | sed "s/^[ ]*[0-9]*[ ]*//g"): $PWD\007"' DEBUG +