feat(zsh): set window title to git repo url basename if available
parent
34c54c5bf4
commit
a73a5a7df0
|
@ -11,7 +11,8 @@ in
|
||||||
|
|
||||||
initExtra = ''
|
initExtra = ''
|
||||||
function set_win_title(){
|
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)
|
precmd_functions+=(set_win_title)
|
||||||
|
|
Loading…
Reference in New Issue