Closed gtarraga closed 4 years ago
Can you share your entire .zshrc
?
Here you go.
ZSHRC_DIRECTORY=${${(%):-%N}:A:h}
[[ -f $ZSHRC_DIRECTORY/.profile ]] && . $ZSHRC_DIRECTORY/.profile
# Path to oh-my-zsh and antigen installation.
export ZSH=$HOME/.oh-my-zsh
source $ZSH/antigen.zsh
antigen theme geometry-zsh/geometry
# # Theme
# ZSH_THEME="geometry"
COMPLETION_WAITING_DOTS="true"
precmd() { print "" }
plugins=(
git
npm
vscode
zsh-autosuggestions
zsh-syntax-highlighting
)
# zsh-autosuggestions
ZSH_AUTOSUGGEST_BUFFER_MAX_SIZE=10
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=0'
zle -N autosuggest-execute
bindkey '^ ' autosuggest-execute
# Enable custom aliases, syntax highlighting && launch.
source ~/.aliases
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.oh-my-zsh/oh-my-zsh.sh
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion```
Can you confirm that just loading geometry.zsh with nothing else (no plugin manager, no antigen) still exhibits the behaviour. Sorry if its tedious but I don't have a windows box to test this on.
I got a gut feeling that we are not handling the precmd()
override but thats just a hunch
I'll try this zshrc on my laptop and see if it replicates that behaviour as well
To be more clear, try this as your entire ~.zshrc
# ~/.zshrc
test -d ~/.geometry || git clone https://github.com/geometry-zsh/geometry.git ~/.geometry
source ~/.geometry/geometry.zsh
@gtarraga any update?
Sorry about the delay. Just tried using the ~/.zshrc
file you suggested, I'm still not able to type on the console once the theme is active.
What is the output of zsh --version
?
The output is zsh 5.5.1 (x86_64-unknown-cygwin)
Ok I am at a complete loss The two things I can think of are
set -x
to the top of your .zshrc and copying the output here so we can look at where its getting stuckThis happens for me when async prompt is enabled.
Trying the mnml branch, with async enabled I get occasional geometry::rprompt::set:3: failed to close file descriptor 11: bad file descriptor
errors.
The master branch works fine with async disabled, but with the obvious drawback that the prompt takes a solid second and change to appear when navigating inside a git repo.
I am getting this error as well now, on ubuntu 18.04
I have a fix inspired by https://github.com/zsh-users/zsh-autosuggestions/blob/master/src/async.zsh , will push tonight
@shinmai can you try the latest version?
Feel free to re-open if its still an issue.
Just installed the theme and displayed the initial prompt but it doesn't let me type at all, I'm running it in Cmder and looks like I can't close the window either. I tried with a fresh install a couple times but still didn't work.
I'm running Zsh on mintty and all that on Cmder, Windows 10![image](https://user-images.githubusercontent.com/11561188/49321423-a95fbc80-f507-11e8-9204-bca63d637521.png)