Open cleargoal opened 5 days ago
Then copy the actual handler to your $PATH and make it executable.
Instead of "Then copy" there should be "Or copy" because it's the 3rd alternative and it describes this operation:
cp phpstorm-url-handler /usr/bin/phpstorm-url-handler
chmod +x /usr/bin/phpstorm-url-handler
Which will copy actual (handler) file phpstorm-url-handler
to the /usr/bin/
directory and make it executable.
Instead of "Then copy" there should be "Or copy" because it's the 3rd alternative and it describes this operation:
cp phpstorm-url-handler /usr/bin/phpstorm-url-handler chmod +x /usr/bin/phpstorm-url-handler
Which will copy actual (handler) file
phpstorm-url-handler
to the/usr/bin/
directory and make it executable.
Thanks for your answer, but it is still not clear to me. Where is or would be the file phpstorm-url-handler
?
Where is or would be the file
phpstorm-url-handler
?
That's the main file in this repository: https://github.com/sanduhrs/phpstorm-url-handler/blob/master/phpstorm-url-handler
Notice: to work it requires phpstorm
to be available in your system $PATH
or as an alias.
It's a simple bash script and it's code should be self explanatory.
Where is or would be the file
phpstorm-url-handler
?That's the main file in this repository: https://github.com/sanduhrs/phpstorm-url-handler/blob/master/phpstorm-url-handler Notice: to work it requires
phpstorm
to be available in your system$PATH
or as an alias.It's a simple bash script and it's code should be self explanatory.
Thank you for the help! I'm very appreciate it!
This is my PATH /home/yefrem/.nvm/versions/node/v20.12.2/bin:/home/yefrem/.local/share/pnpm:/home/yefrem/.local/bin:/home/yefrem/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/yefrem/.composer/vendor/bin:::::: /opt/PhpStorm-233.11799.297/bin:/opt/PhpStorm-233.11799.297/bin
Does it look correct?
I added phpStorm by this line in bashrc
export PATH="$PATH:/opt/PhpStorm-233.11799.297/bin"
One more question.
This package has no installation command.
So, do I need simply to put phpstorm-url-handler
into the /usr/bin/
directory?
This is my PATH /home/yefrem/.nvm/versions/node/v20.12.2/bin:/home/yefrem/.local/share/pnpm:/home/yefrem/.local/bin:/home/yefrem/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/yefrem/.composer/vendor/bin:::::: /opt/PhpStorm-233.11799.297/bin:/opt/PhpStorm-233.11799.297/bin
Does it look correct?
I added phpStorm by this line in bashrc
export PATH="$PATH:/opt/PhpStorm-233.11799.297/bin"
Yes, apart from few empty entries and duplicated /opt/PhpStorm-233.11799.297/bin
- which are probably caused by putting $PATH
in .bashrc
.
Move your $PATH to the end of ~/.profile
without export
, like so:
PATH="/opt/PhpStorm-233.11799.297/bin:$PATH"
Notice: order in $PATH
matters and whatever is first, will be executed first.
One more question. This package has no installation command. So, do I need simply to put
phpstorm-url-handler
into the/usr/bin/
That's correct, if you want it to be available for the entire system.
Actually, you can put it wherever you want and simply add the directory to $PATH
.
I suggest storing custom executables in your home directory like ~/bin
so it doesn't get deleted during a system upgrade and is usually added automatically to $PATH
if that directory exists.
Here is a part of ~/.profile
responsible for that:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
If it doesn't work (don't forget to open new bash session or relog), just add it to your $PATH
:
PATH="/opt/PhpStorm-233.11799.297/bin:$HOME/bin:$PATH"
I am forced to write here because this repo doesn't have a 'discussions' tab.
In the doc there is the sentence:
Please explain what the
actual handler
is in this mention.Thank you!