Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nanamiiiii committed Nov 27, 2023
2 parents eaca145 + a0fdf75 commit 1c94582
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,18 @@ fpath=(
"$fpath[@]"
)

# Title
autoload -Uz add-zsh-hook
function _set_title() {
echo -ne "\033]0; ${USER}@${HOST} \007"
}
function _set_cmd_title() {
cmd=$(echo ${2} | awk '{print $1}')
echo -ne "\033]0; ${cmd} \007"
}
add-zsh-hook precmd _set_title
add-zsh-hook preexec _set_cmd_title

# Check required app
## editor
if ( ! $(command -v nvim > /dev/null) )
Expand Down

0 comments on commit 1c94582

Please sign in to comment.