Closed mtekp closed 4 years ago
Try removing ~/.mcfly/
and letting to process finish. How big is your bash / zsh history file?
well this worked. My zsh history was 165k. Also the historydb generated is 598k. Is this normal? And after enabling mcfly, I dont see the ctrl-r prompt be like what it is shown in readme.
I meant not like this git search
What do you see, if not that prompt?
❯ head ~/.zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
source /usr/share/zsh/share/antigen.zsh
if [[ -r ~/.config/mcfly/mcfly.zsh ]]; then
source ~/.config/mcfly/mcfly.zsh
fi
# Path to your oh-my-zsh installation.
export ZSH="/home/manjunath/.oh-my-zsh"
❯ head ~/.config/mcfly/mcfly.zsh
#!/bin/zsh
# Ensure stdin is a tty
[[ -t 0 ]] || return
# Avoid loading this file more than once
if [[ "$__MCFLY_LOADED" == "loaded" ]]; then
return 0
fi
__MCFLY_LOADED="loaded"
left side is mcfly
enabled and right is zsh-peco-history
enabled
I don't think ~/.config/mcfly/mcfly.zsh
is getting sourced. Do you see various MCFLY_
variables set in env
?
❯ echo $MCFLY_
MCFLY_HISTORY MCFLY_PATH MCFLY_SESSION_ID
~ via ☕ v11.0.6
❯ echo $MCFLY_HISTORY
/tmp/mcfly.Uv1mmSdg
~ via ☕ v11.0.6
❯ echo $MCFLY_PATH
/home/manjunath/.cargo/bin/mcfly
~ via ☕ v11.0.6
❯ echo $MCFLY_SESSION_ID
eHraNPZHgJCy5nOmUKwlZyyw
I had sourced something else again later in .zshrc which was causing the problem. Works perfectly fine and great tool I love Rust and love this tool too
While mcfly said to wait for 2 minutes, I did wait but seemed it had stuck so I opened another terminal window, I got some error like db locked or something. Then onwards I just see errors, for any command.