Skip to content

Commit

Permalink
Bash Syntax Highlighting?
Browse files Browse the repository at this point in the history
Trying this out to see how mkdocs and highlights.js work with bash specified.

Signed-off-by: Geoffrey Wiseman <geoffrey.wiseman@codiform.com>
  • Loading branch information
geoffreywiseman committed Jun 14, 2023
1 parent f20b120 commit 6586b6d
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,24 @@ These are the most common operations. I'm going to use made-up ip addresses in

Often, I'll want to check if my current ip address is in a security group:

❯ awswl --sgid sg-0123456abc --list
The following CIDR blocks are authorized for SSH:
- 192.168.0.0/16
- 172.16.0.0/21
- 8.8.8.8/32
```bash
❯ awswl --sgid sg-0123456abc --list
The following CIDR blocks are authorized for SSH:
- 192.168.0.0/16
- 172.16.0.0/21
- 8.8.8.8/32
```

These IP addresses are made up, but if my current external ip address were listed, it should be marked with `(current)`. This is what it would look like if I were in the list:

❯ awswl --sg-name "mycorp-prod-bastion" --list
The following CIDR blocks are authorized for SSH:
- 192.168.0.0/16
- 172.16.0.0/21
- 8.8.8.8/32
- 1.2.3.4/32 (current)
```bash
❯ awswl --sg-name "mycorp-prod-bastion" --list
The following CIDR blocks are authorized for SSH:
- 192.168.0.0/16
- 172.16.0.0/21
- 8.8.8.8/32
- 1.2.3.4/32 (current)
```

### Adding My Current External IP

Expand Down

0 comments on commit 6586b6d

Please sign in to comment.