Edit the.zshrc file

vi ~/.zshrc
Copy the code

ZSHRC contains the following contents:

Here also can set the other common working directory, example: # alias lapp = “CD/Users/username/yzj/connecterp – lapp.” “

alias ws="webstorm"
Copy the code

This command takes effect after you exit editing

source ~/.zshrc
Copy the code

Finally switch to the working directory:

cd /xxx/xx  # Go to the relevant directory
ws . #ws is the webstorm alias set above
Copy the code