So I thought my autosuggestion was working, I had ran this command source .oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh and it was working fine, but right after I closed the terminal and opened up again the auto suggestion quit working. Any help?
You need to configure OMZ to load zsh-autosuggestions on every start-up. Add zsh-autosuggestions to the list of OMZ plugins as described in step 2 of the OMZ installation instructions: https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh
Yea so I have that already in my .zshrc but still nothing and I restarted the terminal already.
Ok I'm not sure why that wouldn't be working then. Maybe there is a typo or something? You could always add the manual source line to your .zshrc.
That seemed to work. Thanks
iTerm > Preferences > Profiles > Colors > ANSI Colors > Bright > Black
iTerm > Preferences > Profiles > Colors > Basic Colors > Background
@yuungH4x0r I had the same problem. Turns out I had the autosuggestion color (ANSI Bright Black) set exactly the same as my iTerm background so they blended together perfectly and I just couldn't see it 馃槄
鈿狅笍 Make sure iTerm's "Background" and "ANSI Normal Black" are set to two _distinctly_ different colors!
iTerm > Preferences > Profiles > Colors > ANSI Colors > Bright > Black
iTerm > Preferences > Profiles > Colors > Basic Colors > Background@yuungH4x0r I had the same problem. Turns out I had the autosuggestion color (ANSI Bright Black) set exactly the same as my iTerm background so they blended together perfectly and I just couldn't see it 馃槄
Could this perhaps be added to the README somewhere, under troubleshooting?
Could this perhaps be added to the README somewhere, under troubleshooting?
Good idea! Please feel free to write something up and send a PR.
I was missing the repo. To fix I ran:
$ git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
running git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions solved this for me.
for me, messed up zsh-autosuggestions and zsh-completions.
I know it's stupid, but it cost me 5 minutes -_-
hope you don't ;)
thanks.
### 鈿狅笍 Make sure iTerm's "Background" and "ANSI Normal Black" are set to two _distinctly_ different colors!
To add on, under iTerm > Preferences > Profile > Colors, do not choose Solarized Dark as a Color Preset as "Background" and "ANSI Bright Black" are the same colour!
I am trying to install zsh-autosuggestions. I followed the manual steps as well as homebrew steps. However, in both cases when I try to do source ~/.zshrc I get the following error:
-bash: ! ${+ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_ORIGINAL_WIDGET_PREFIX} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_STRATEGY} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_CLEAR_WIDGETS} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_ACCEPT_WIDGETS} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_EXECUTE_WIDGETS} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_PARTIAL_ACCEPT_WIDGETS} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_IGNORE_WIDGETS} : bad substitution
-bash: ! ${+ZSH_AUTOSUGGEST_COMPLETIONS_PTY_NAME} : bad substitution
-bash: /Users/dipamvasani/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh: line 95: syntax error near unexpected token `('
-bash: /Users/dipamvasani/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh: line 95: ` user:_zsh_autosuggest_(bound|orig)_*)'
Can someone tell me what's wrong?
for me the problem was simply wrong order of commands in .zshrc
this line:
plugins=(git z colored-man-pages zsh-syntax-highlighting zsh-autosuggestions)
was AFTER this line:
source $ZSH/oh-my-zsh.sh
I just swapped them and after that all plugins were loaded correctly. (no need for manual sourcing of plugins)
@dipam7 it looks like you鈥檙e using bash. This is a plug-in for zsh so it won鈥檛 work in bash. Install and use zsh to use this plugin. It looks like there鈥檚 a good write up on installing zsh here https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH
for me the problem was simply wrong order of commands in .zshrc
this line:
plugins=(git z colored-man-pages zsh-syntax-highlighting zsh-autosuggestions)was AFTER this line:
source $ZSH/oh-my-zsh.shI just swapped them and after that all plugins were loaded correctly. (no need for manual sourcing of plugins)
Thanks, it worked for me
for me the problem was simply wrong order of commands in .zshrc
this line:
plugins=(git z colored-man-pages zsh-syntax-highlighting zsh-autosuggestions)was AFTER this line:
source $ZSH/oh-my-zsh.shI just swapped them and after that all plugins were loaded correctly. (no need for manual sourcing of plugins)
Thanks, it worked for me as well
@veksha thank you so much! this works for me as well. I think this should be considered the accepted answer.
Most helpful comment
鈿狅笍 Make sure iTerm's "Background" and "ANSI Normal Black" are set to two _distinctly_ different colors!
@yuungH4x0r I had the same problem. Turns out I had the autosuggestion color (ANSI Bright Black) set exactly the same as my iTerm background so they blended together perfectly and I just couldn't see it 馃槄