Super Link, Yo - Run native Linux commands from your Windows shell!
Slinky allows you to run Linux commands in the Windows shell - instead of having to open up a Bash Windows implementation whenever you need to bash out some scripts, Slinky lets you run those commands straight from your Windows (or Powershell) command prompt.
Slinky requires an implementation of
bash to be installed on your computer. If you're running the Windows 10 Aniversary update or later, you can use the in-built Ubuntu for Windows bash. Otherwise, install an alternate tool such as Git Bash/MSYS Bash or Cygwin.
To install Slinky, run the following command in your Bash environment.
bash <(curl https://raw.githubusercontent.com/cpdt/slinky/master/install.sh)
In your Bash or Windows shell, run the command below to link a command in the Windows prompt to a Bash command (i.e running the command in the Windows prompt will actually run the Bash command).
$ slink [command name]
Alternatively, you can assign a different name to the Windows command by providing two parameters:
$ slink [windows command] [linux command]
Example 1: Link the
curlcommand so it is runnable from Windows:C:\> slink curl C:\> curl ...etc...
Example 2: Link Linux's
echocommand so it is runnable as
do-echofrom Windows:C:\> slink do-echo echo C:\> do-echo ...etc...
Delete a link
You can delete a link with the
$ rmslink [windows command]
Example 1: Remove a link for the
curlcommand:C:\> rmslink curl
Example 2: Remove a link between Linux's
echocommand and the
do-echocommand on Windows:C:\> rmslink do-echo
List all links
You can view a list of the Windows command names of all commands with the
Tired of being awesome and want to go back to being a regular command-prompt user? The
delslink command is for you! This command will, as the name suggests, delete Slinky and all related files from your computer. Slinky links will not be kept around, so if you uninstall Slinky and then re-install, you will need to re-create all of your links.
Can I create/remove/list Slinky links from the Bash shell?
Yes - the Slinky commands are actually Bash script files, installed by default in
/usr/local/bin. As a result, these commands will be available in the Bash shell as long as this installation directory is in your PATH.
Why does the GIF show vim being opened? Is slinky only for vim users?
Now you're just reading too far into the GIF
slink emacs or
slink nano or even
slink ed and enjoy your favourite terminal editor on Windows.
Slinky is licensed under the MIT license, included in the