pages*: fix Bash, Zsh and fish names (#12481)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# history expansion
|
||||
|
||||
> Reuse and expand the shell history in `sh`, `bash`, `zsh`, `rbash` and `ksh`.
|
||||
> Reuse and expand the shell history in `sh`, Bash, Zsh, `rbash` and `ksh`.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/html_node/History-Interaction>.
|
||||
|
||||
- Run the previous command as root (`!!` is replaced by the previous command):
|
||||
|
@@ -7,15 +7,15 @@
|
||||
|
||||
`history`
|
||||
|
||||
- Display the last 20 commands (in `zsh` it displays all commands starting from the 20th):
|
||||
- Display the last 20 commands (in Zsh it displays all commands starting from the 20th):
|
||||
|
||||
`history {{20}}`
|
||||
|
||||
- Clear the commands history list (only for current `bash` shell):
|
||||
- Clear the commands history list (only for current Bash shell):
|
||||
|
||||
`history -c`
|
||||
|
||||
- Overwrite history file with history of current `bash` shell (often combined with `history -c` to purge history):
|
||||
- Overwrite history file with history of current Bash shell (often combined with `history -c` to purge history):
|
||||
|
||||
`history -w`
|
||||
|
||||
|
@@ -23,6 +23,6 @@
|
||||
|
||||
`msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST={{local_ip}} LPORT={{local_port}} -f exe -o {{path/to/binary.exe}}`
|
||||
|
||||
- Create a raw bash with a reverse TCP handler:
|
||||
- Create a raw Bash with a reverse TCP handler:
|
||||
|
||||
`msfvenom -p cmd/unix/reverse_bash LHOST={{local_ip}} LPORT={{local_port}} -f raw`
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# nvm
|
||||
|
||||
> Install, uninstall, or switch between Node.js versions under the `fish` shell.
|
||||
> Install, uninstall, or switch between Node.js versions under the fish shell.
|
||||
> Supports version numbers like "12.8" or "v16.13.1", and labels like "stable", "system", etc.
|
||||
> More information: <https://github.com/jorgebucaran/nvm.fish>.
|
||||
|
||||
|
@@ -1,7 +1,7 @@
|
||||
# open
|
||||
|
||||
> Opens files, directories, and URIs with default applications.
|
||||
> This command is available through `fish` on operating systems without the built-in `open` command (e.g. Haiku and macOS).
|
||||
> This command is available through fish on operating systems without the built-in `open` command (e.g. Haiku and macOS).
|
||||
> More information: <https://fishshell.com/docs/current/cmds/open.html>.
|
||||
|
||||
- Open a file with the associated application:
|
||||
|
@@ -6,6 +6,6 @@
|
||||
|
||||
`tldr open -p osx`
|
||||
|
||||
- View documentation for the command available through `fish`:
|
||||
- View documentation for the command available through fish:
|
||||
|
||||
`tldr open.fish`
|
||||
|
@@ -3,7 +3,7 @@
|
||||
> Miscellaneous system commands for PlatformIO.
|
||||
> More information: <https://docs.platformio.org/en/latest/core/userguide/system/>.
|
||||
|
||||
- Install shell completion for the current shell (supports Bash, Fish, Zsh and PowerShell):
|
||||
- Install shell completion for the current shell (supports Bash, fish, Zsh and PowerShell):
|
||||
|
||||
`pio system completion install`
|
||||
|
||||
|
@@ -19,7 +19,7 @@
|
||||
|
||||
`printf "{{var1: %s\tvar2: %s\n}}" "{{$VAR1}}" "{{$VAR2}}"`
|
||||
|
||||
- Store a formatted message in a variable (does not work on zsh):
|
||||
- Store a formatted message in a variable (does not work on Zsh):
|
||||
|
||||
`printf -v {{myvar}} {{"This is %s = %d\n" "a year" 2016}}`
|
||||
|
||||
|
@@ -11,7 +11,7 @@
|
||||
|
||||
`procs --tree`
|
||||
|
||||
- List information about processes, if the commands which started them contain `zsh`:
|
||||
- List information about processes, if the commands which started them contain Zsh:
|
||||
|
||||
`procs {{zsh}}`
|
||||
|
||||
|
@@ -7,7 +7,7 @@
|
||||
|
||||
`sudo pueue completions bash {{/usr/share/bash-completion/completions/pueue.bash}}`
|
||||
|
||||
- Generate completions for zsh:
|
||||
- Generate completions for Zsh:
|
||||
|
||||
`sudo pueue completions zsh {{/usr/share/zsh/site-functions}}`
|
||||
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
`sudo --user={{user}} --group={{group}} {{id -a}}`
|
||||
|
||||
- Repeat the last command prefixed with `sudo` (only in `bash`, `zsh`, etc.):
|
||||
- Repeat the last command prefixed with `sudo` (only in Bash, Zsh, etc.):
|
||||
|
||||
`sudo !!`
|
||||
|
||||
|
Reference in New Issue
Block a user