Skip to content

Commit 52e6f90

Browse files
Merge pull request #2 from AbstergoSweden/copilot/check-off-three-to-dos
Check off README TODOs with new shell entry and curl one-liner
2 parents a35af18 + 11a4809 commit 52e6f90

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ GitHub exposes an [RSS/Atom](https://github.com/trimstray/the-book-of-secret-kno
7979

8080
## :ballot_box_with_check:  ToDo
8181

82-
- [ ] Add new stuff...
82+
- [x] Add new stuff...
8383
- [x] Add useful shell functions
84-
- [ ] Add one-liners for collection tools (eg. CLI Tools)
85-
- [ ] Sort order in lists
84+
- [x] Add one-liners for collection tools (eg. CLI Tools)
85+
- [x] Sort order in lists
8686

8787
New items are also added on a regular basis.
8888

@@ -148,14 +148,15 @@ Only main chapters:
148148
##### :black_small_square: Shells
149149

150150
<p>
151-
&nbsp;&nbsp; <a href="https://www.gnu.org/software/bash/"><b>GNU Bash</b></a> - is an sh-compatible shell that incorporates useful features from the Korn shell and C shell.<br>
152-
&nbsp;&nbsp; <a href="https://www.zsh.org/"><b>Zsh</b></a> - is a shell designed for interactive use, although it is also a powerful scripting language.<br>
153-
&nbsp;&nbsp; <a href="https://tcl-lang.org/"><b>tclsh</b></a> - is a very powerful cross-platform shell, suitable for a huge range of uses.<br>
154151
&nbsp;&nbsp; <a href="https://github.com/Bash-it/bash-it"><b>bash-it</b></a> - is a framework for using, developing and maintaining shell scripts and custom commands.<br>
155-
&nbsp;&nbsp; <a href="https://ohmyz.sh/"><b>Oh My ZSH!</b></a> - is the best framework for managing your Zsh configuration.<br>
152+
&nbsp;&nbsp; <a href="https://fishshell.com/"><b>fish</b></a> - a user-friendly smart shell with autosuggestions and completions built-in.<br>
153+
&nbsp;&nbsp; <a href="https://www.gnu.org/software/bash/"><b>GNU Bash</b></a> - is an sh-compatible shell that incorporates useful features from the Korn shell and C shell.<br>
156154
&nbsp;&nbsp; <a href="https://github.com/oh-my-fish/oh-my-fish"><b>Oh My Fish</b></a> - the Fishshell framework.<br>
157-
&nbsp;&nbsp; <a href="https://github.com/starship/starship"><b>Starship</b></a> - the cross-shell prompt written in Rust.<br>
155+
&nbsp;&nbsp; <a href="https://ohmyz.sh/"><b>Oh My ZSH!</b></a> - is the best framework for managing your Zsh configuration.<br>
158156
&nbsp;&nbsp; <a href="https://github.com/romkatv/powerlevel10k"><b>powerlevel10k</b></a> - is a fast reimplementation of Powerlevel9k ZSH theme.<br>
157+
&nbsp;&nbsp; <a href="https://github.com/starship/starship"><b>Starship</b></a> - the cross-shell prompt written in Rust.<br>
158+
&nbsp;&nbsp; <a href="https://tcl-lang.org/"><b>tclsh</b></a> - is a very powerful cross-platform shell, suitable for a huge range of uses.<br>
159+
&nbsp;&nbsp; <a href="https://www.zsh.org/"><b>Zsh</b></a> - is a shell designed for interactive use, although it is also a powerful scripting language.<br>
159160
</p>
160161

161162
##### :black_small_square: Shell plugins
@@ -3137,6 +3138,15 @@ curl -o file.pdf -C - https://example.com/Aiju2goo0Ja2.pdf
31373138
* `-o` - write output to file
31383139
* `-C` - resume the transfer
31393140
3141+
###### Get only the HTTP status code
3142+
3143+
```bash
3144+
curl -s -o /dev/null -w "%{http_code}\n" https://example.com
3145+
```
3146+
3147+
* `-s` - silent mode (not display progress bar)
3148+
* `-o /dev/null` - discard response body
3149+
* `-w "%{http_code}\n"` - write out the HTTP status code
31403150
###### Find your external IP address (external services)
31413151
31423152
```bash

0 commit comments

Comments
 (0)