Skip to content

Commit 8654ead

Browse files
stevemaomathiasbynens
authored andcommitted
.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 mathiasbynens#623.
1 parent 513f809 commit 8654ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.bash_prompt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ else
104104
fi;
105105

106106
# Set the terminal title to the current working directory.
107-
PS1="\[\033]0;\w\007\]";
107+
PS1="\033]0; ${PWD##*/}\007";
108108
PS1+="\[${bold}\]\n"; # newline
109109
PS1+="\[${userStyle}\]\u"; # username
110110
PS1+="\[${white}\] at ";

0 commit comments

Comments
 (0)