Skip to content

Commit

Permalink
support Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aerobounce committed Jan 25, 2020
1 parent f19ac3c commit 63ec076
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"command": "pretty_shell",
"keys": ["alt+ctrl+s"]
}
]
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ Highly recommended to use this plugin with:

## Dependency
Make sure you have installed `shfmt` as this package utilizes the formatter.<br>
You can install it with Homebrew:
If you are on macOS, you can install it with Homebrew:

```bash
brew install shfmt
```

If installed via `brew` and your shell recognize its path, that's it.<br>
Otherwise, install the command in a way whatever you like and specify full path to the bin with the setting:
Otherwise, install the command in a way whatever you like, then specify full path to the bin in setting:

```
"shfmt_bin_path": "FULL PATH to shfmt"
Expand All @@ -29,17 +29,17 @@ Otherwise, install the command in a way whatever you like and specify full path
2. Type `PrettyShell` and Install
3. You're ready

### Install (Manually)
### Install (Manually on macOS / Linux / Windows)
1. Quit Sublime Text
2. Clone this repository as shown below
3. You're ready

- It should work on Linux too. Follow the same steps with the equivalent clone target directory.

```bash
git clone https://github.com/aerobounce/Sublime-Pretty-Shell.git "$HOME/Library/Application Support/Sublime Text 3/Packages/PrettyShell"
```

- It should work on Linux / Windows too. Follow the same steps with the equivalent clone target directory.

## Usage
1. `Command Palette...`
2. `Pretty Shell: Format`
Expand Down

0 comments on commit 63ec076

Please sign in to comment.