Skip to content

Instantly share code, notes, and snippets.

@GeekaholicLin
Last active November 2, 2017 01:55
Show Gist options
  • Select an option

  • Save GeekaholicLin/14a31d756815dee7e0adb20ae7cb9aec to your computer and use it in GitHub Desktop.

Select an option

Save GeekaholicLin/14a31d756815dee7e0adb20ae7cb9aec to your computer and use it in GitHub Desktop.
instead-of-webstorm-built-in-terminal

修改Webstorm的Terminal为自己定义的Terminal.(主要是内建的使用系统自带,功能受限)。

  1. 首先安装g功能强大的 babun

  2. 将zsh.exe的路径[不是babun.bat]添加。比如 "D:\babun.babun\cygwin\bin\zsh.exe"

  3. Enjoy it.


update:

为了能在将webstorm的程序集成到zsh的命令行中,比如可用在特定目录使用 ws .即可用webstorm打开当前目录,这对于git项目来说,无疑是很方便的。

经过摸索,简单地记录一下。具体做法如下:

  1. 使用Listary Pro 全局搜索'.zshrc'文件,在文件的最后添加语句[也就是webstorm安装目录下的执行文件,注意,路径名不可有空格(别问我为什么知道),且该路径名为zsh下可先跳转,再使用pwd命令查看,复制粘贴]

alias ws="/cygdrive/d/软件/JetBrains/WebStorm2016.3/bin/webstorm64.exe"

  1. 重启zsh

  2. 在Webstorm集成的zsh命令行中特定目录下敲'ws .' 回车,即可将该目录新建成一个project.

  3. Enjoy it.

PS: 除此之外,还可用通过插件line command tool support支持启动,不过是在zsh命令窗口外多了一个console窗口,显得麻烦。

@stephenasamoah
Copy link

Can you kindly write this in English? Google's translation on this isn't that great.

@zhengzheming
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment