1
0
mirror of https://github.com/akelge/zsh synced 2025-09-19 04:12:53 +00:00

Real bump!!!

This commit is contained in:
2024-10-30 12:31:19 +01:00
parent 221aec2b35
commit 1fe3029353
4 changed files with 16 additions and 49 deletions

View File

@ -9,7 +9,7 @@ done
compinit -C
# autoload bashcompinit && bashcompinit
autoload bashcompinit && bashcompinit
# autoload bashcompinit
# allow approximate

View File

@ -1,30 +0,0 @@
# Hooks for zsh
#
# - precmd
# - chpwd
# - preexec
# - periodic
# - zshaddhistory
# - zshexit
#
# Async Git update
autoload -Uz vcs_info
_vbe_vcs_info_done() {
local stdout=$3
vcs_info_msg_0_=$stdout
# echo $(date +"%Y-%m-%d %H:%M:%S") $PWD info $vcs_info_msg_0_ $vcs_info_msg_1_ >> ~/vcs.log
zle reset-prompt
}
_vbe_vcs_precmd() {
# echo $(date +"%Y-%m-%d %H:%M:%S") $PWD pre >> ~/vcs.log
async_flush_jobs vcs_info
async_job vcs_info _vbe_vcs_info $PWD
}
async_init
async_start_worker vcs_info
async_register_callback vcs_info _vbe_vcs_info_done
add-zsh-hook precmd _vbe_vcs_precmd