Skip to content

Commit

Permalink
docs: expanded windows PowerShell instructions. (#166)
Browse files Browse the repository at this point in the history
* Expanded Windows PowerShell instructions.

Expanded the windows instructions as there was no clear indicator of which shell to enter each command. Now all commands are entered under PowerShell directly making instructions clearer for newbies.

* Expanded Windows PowerShell instructions

Expanded the windows instructions as there was no clear indicator of which shell to enter each command. Now all commands are entered under PowerShell directly making instructions clearer for newbies.

* Update README.md with easier to follow windows instructions

Expanded the [windows install instructions](https://github.com/justchokingaround/lobster#windows) as there was no clear indicator of which shell to enter each command in. Also, now all commands are entered under PowerShell as listed in the [usage](https://github.com/justchokingaround/lobster#usage) directly making instructions clearer for newbies.

* Update README.md

Corrected instances of bash omitted invocations
  • Loading branch information
Scyne authored Oct 24, 2023
1 parent fe30275 commit 04244ff
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,14 +133,14 @@ chmod +x "$(brew --prefix)"/bin/lobster

Open a PowerShell terminal https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2#msi (version 5.1 or later) and run:

```sh
```ps
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
irm get.scoop.sh | iex
```

2. Install git,mpv and fzf

```sh
```ps
scoop bucket add extras
scoop install git mpv fzf
```
Expand All @@ -151,26 +151,31 @@ scoop install git mpv fzf
https://git-scm.com/download/win

5. Symlink mpv to be in path.
```sh
ln -sf "$(scoop prefix mpv)/mpv.exe" /usr/bin/mpv
```ps
bash ln -sf "$(scoop prefix for mpv)/mpv.exe" /usr/bin/mpv
```

6. Download the script file to the current directory
```sh
```ps
curl -O "https://raw.githubusercontent.com/justchokingaround/lobster/main/lobster.sh"
```

7. Give it executable permissions
```sh
chmod +x lobster.sh
bash chmod +x lobster.sh
```

8. Copy the script to path
```sh
cp lobster.sh /usr/bin/lobster
bash cp lobster.sh /usr/bin/lobster
```

9. Use lobster
9. Create a Powershell Lobster function by adding the following to the end of `Microsoft.PowerShell_profile.ps1`. You can check the location of this file by querying the $PROFILE variable in PowerShell. Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1`
```ps
function lobster { param([string[]]$Args); & bash -c "lobster $($Args -join ' ')" Invoke-Expression $command }
```

10. Use lobster
```sh
lobster <args> or lobster [movie/tv show]
```
Expand Down Expand Up @@ -530,6 +535,6 @@ rm "$(brew --prefix)"/bin/lobster

### Windows

```sh
rm /usr/bin/lobster
```ps
bash rm /usr/bin/lobster
```

0 comments on commit 04244ff

Please sign in to comment.