feat(zsh): set window title to current directory name
This commit is contained in:
parent
6bf4bbfc36
commit
34c54c5bf4
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@ in
|
|||
enableCompletion = true;
|
||||
history.size = 10000;
|
||||
|
||||
initExtra = ''
|
||||
function set_win_title(){
|
||||
echo -ne "\033]0; $(basename "$PWD") \007"
|
||||
}
|
||||
|
||||
precmd_functions+=(set_win_title)
|
||||
'';
|
||||
|
||||
sessionVariables = {
|
||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE = zsh_autosuggest_highlight_style;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue