feat(zsh): set window title to git repo url basename if available
This commit is contained in:
parent
34c54c5bf4
commit
a73a5a7df0
1 changed files with 2 additions and 1 deletions
|
@ -11,7 +11,8 @@ in
|
|||
|
||||
initExtra = ''
|
||||
function set_win_title(){
|
||||
echo -ne "\033]0; $(basename "$PWD") \007"
|
||||
local TITLE=$(git config --get remote.origin.url || echo "$PWD")
|
||||
echo -ne "\033]0; $(basename "$TITLE") \007"
|
||||
}
|
||||
|
||||
precmd_functions+=(set_win_title)
|
||||
|
|
Loading…
Reference in a new issue