Angelmmiguel / pm

The easy way to switch between your projects on ZSH
MIT License
193 stars 17 forks source link

pm.zsh path in installation script for .zshrc #23

Open SuddenlyPineapple opened 4 years ago

SuddenlyPineapple commented 4 years ago

Hey, I've got problem when installing pm like described in README. Looks like path to pm.zsh file is set to ~/pm/pm.zsh (while pm.zsh is in home folder (~/) ) in zsh config file (~/.zshrc). I've got that problem on two PCs and has to change path in .zshrc manually. It would be nice to fix this :)

Angelmmiguel commented 4 years ago

Hello @SuddenlyPineapple ,

In the install.sh script, I'm setting the pm folder to PM_BASE=$HOME/.pm. This is the path where the script is installed. Regarding the .zshrc, it also relies on PM_BASE:

echo "source $PM_BASE/pm.zsh" >> .zshrc

Please, could you check the value of $HOME in your terminal? Maybe, this environment variable is missing in your case.

Thank you for submitting the issue and glad you found a workaround to fix it :)

SuddenlyPineapple commented 4 years ago

My $HOME value is (checked on 64bit Mac OS X 10.15.3 19D76): /Users/username Same path is for WSL in Windows 10 1909 And i'm sure it wasn't changed manually.