I have:
I run zsh as my default shell, and my terminal is Konsole with three tabs, one where I issue lots of commands and the other two mostly just showing output from programs I run (detached from the shell, they don't show up in jobs
). I installed pure in September 2018, I think it was a bit after version 1.8.0. Several times in 2019 I notice in top and htop output that zsh is at 99% CPU. ps
reveals the zsh at high usage is not in my active shell but one of these inactive ones. This high CPU is not turning the fan on so I'm usually not aware of it, and I'm not sure what triggers this high CPU mode. zsh is not in a git directory. I ran ltrace
and noticed some
strlen("watcher") = 7
strlen("watcher") = 7
strcpy(0x7f2a04d7b690, "watcher")
output, and pure uses this string, hence this bug report.
I just updated pure to latest version and instructions (adding it to fpath). After source ~/.zshrc in the pty that was at high CPU, the issue persisted, I will see if this recurs in new shells.
Don't know yet. I've noticed the high CPU usage about 7 times.
I completely understand if you reject this bug report as unreproducible, Thanks for this nice software.
.zshrc
:HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=5000
setopt appendhistory notify
bindkey -v
zstyle ':completion:*' completer _complete _ignored
zstyle :compinstall filename '/home/spage/.zshrc'
autoload -Uz compinit
compinit
zstyle ':completion:*' glob 1
zstyle ':completion:*' menu select=long-list select=0
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
limit coredumpsize 2048000
unsetopt hup # don't set HUP to jobs when exiting
bindkey -M viins '�' history-incremental-search-backward
bindkey -M vicmd '�' history-incremental-search-backward
bindkey -M viins '�' beginning-of-line
bindkey -M vicmd '�' beginning-of-line
bindkey -M viins '�' end-of-line
bindkey -M vicmd '�' end-of-line
bindkey '^W' vi-backward-kill-word
fpath+=("$HOME/dotfiles/pure") ## I added this line just now
autoload -U promptinit; promptinit
prompt pure
export GPGKEY=blahblahblah
export VISUAL=/usr/bin/vim
alias grepr='grep --exclude-dir=.git --exclude-dir=.svn --exclude-dir=vendor --exclude-dir=node_modules'
settitle () {print -Pn "\e]2;${@}\a"}
alias st=settitle
longest () {
MAX=0 IFS=
while read -r line; do
if [ ${#line} -gt $MAX ]; then MAX=${#line}; fi
done
echo $MAX
}
export PATH="$HOME/.cargo/bin:$PATH"
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too