Introduceโ
Fast Shell supports the management of custom scripts, which can quickly execute shell commands. The supported commands depend on the shell environment used by the current IDE.
Fast Shell has a fairly high degree of freedom. All instructions are completely defined by the user.
Replace a very long command
with a short command
. And it's integrated into the IDE's Run Anything
, so you can easily open it with Double Ctrl
.
The goal of Fast Shell is to let you get rid of alias in .bashrc
or .zshrc
.
It doesn't matter if you have defined some commonly used directives in .bashrc
or .zshrc
. You can still add it to FastShell to execute.
Supported Versionsโ
Fast Shell will support all JetBrains platforms from 2020.1
to 2021.3
, and will be supported as soon as possible after the 2022
version is released.
If the instruction is a lot, you can also write it as a script, and then invoke the script through Fast Shell to execute it.
Double-click Ctrl
, enter fs
, it will list all the Fast Shell commands that have been set, double-click to execute or press Enter after selecting it to execute.
You can also open settings via Settings/Preferences
> Tools
> Fast Shell
.
You can also add a custom directive. Click in the upper right corner of the Run Anything toolbar to open Open Settings to manage your commands.
Most of the shell commands are the same for Linux and Mac. So basically universal. But on Windows things are a little different. Windows has its own separate directives.
E.g:
Windows PowerShell | Linux/macOS |
---|
ipconfig | ifconfig |
Get-Content filename -Wait | tailf / tail -F filename |
Therefore, when setting the command, you need to ensure that the current Shell environment supports the set command.
Appendixโ
Set the current shell environmentโ
Settings/Preferences
> Tools
> Terminal
> Shell Path