S
S
sergey2017-03-01 11:54:28
bash
sergey, 2017-03-01 11:54:28

How to correctly write alias to launch webstorm from console?

The bottom line is this: I create a certain algorithm in the .bashrc file for creating and deploying a project from the console and opening it (the project) in the Webstorm editor, I saw an example here , but the implementation of this happens on windows, I'm trying to implement it for Ubuntu, the file itself I created and edited, and everything seems to work, except that the editor does not start and the project does not open in it.
this is how i tried to write alias for storm

alias storm='cd /home/******/WebStorm-162.1812.21/bin/./webstorm.sh' $*
,
and then in the file already at startup:
storm /home/*****/Dropbox/Projects/Work2017/site_$1\/site

but, of course, the console swears (it says that this is not a directory, etc.) and nothing happens, because in fact, in order to launch websytorm from the console, you need to perform a series of gestures:
cd /home/sagan/WebStorm-162.1812.21/bin/
~/WebStorm-162.1812.21/bin$  chmod +x  webstorm.sh
~/WebStorm-162.1812.21/bin$  ./webstorm.sh

but how to push all this into alias?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2017-03-01
@zorro76

but how to push all this into alias?
through a semicolon.
or write it in a separate script and specify it with an alias.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question