zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.43k stars 1.85k forks source link

How to know version number #554

Open sguillia opened 3 years ago

sguillia commented 3 years ago

I'd like to know the version number of the zsh-autosuggestions package that is installed on my machine

I can't remember installing this manually, it must be via oh-my-zsh

locate zsh-autosuggestions prints nothing even after updatedb

find ~/.oh-my-zsh | grep zsh-autosuggestions prints nothing

Not sure where this gets installed

Describe the solution you'd like

Either an advice on the installation location, or a command like zsh-autosuggestions --version

Describe alternatives you've considered

n/a

Additional context

Sorry for the silly question

erdaltsksn commented 3 years ago

I install zsh-autosuggestions by cloning the repo inside custom plugins folder using the command below.

git clone https://github.com/zsh-users/zsh-autosuggestions $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions

So I can see the version by running the following command:

cat $HOME/.oh-my-zsh/custom/plugins/zsh-autosuggestions/VERSION

Output:

Screen Shot 2020-08-08 at 16 32 31

REF: https://github.com/erdaltsksn/dotfiles/blob/03619bbaccc71b0282beb0cdec6acd74481b18ec/scripts/preinstall#L21-L24