compopt, disown, help, unset: move to common (#14029)
This commit is contained in:
12
pages/common/compopt.md
Normal file
12
pages/common/compopt.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# compopt
|
||||
|
||||
> Print or change the completion options for a command.
|
||||
> More information: <https://manned.org/compopt>.
|
||||
|
||||
- Print the options for the currently executing completion:
|
||||
|
||||
`compopt`
|
||||
|
||||
- Print the completion options for given command:
|
||||
|
||||
`compopt {{command}}`
|
21
pages/common/disown.md
Normal file
21
pages/common/disown.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# disown
|
||||
|
||||
> Allow sub-processes to live beyond the shell that they are attached to.
|
||||
> See also the `jobs` command.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-disown>.
|
||||
|
||||
- Disown the current job:
|
||||
|
||||
`disown`
|
||||
|
||||
- Disown a specific job:
|
||||
|
||||
`disown %{{job_number}}`
|
||||
|
||||
- Disown all jobs:
|
||||
|
||||
`disown -a`
|
||||
|
||||
- Keep job (do not disown it), but mark it so that no future SIGHUP is received on shell exit:
|
||||
|
||||
`disown -h %{{job_number}}`
|
28
pages/common/help.md
Normal file
28
pages/common/help.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# help
|
||||
|
||||
> Display information about Bash builtin commands.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-help>.
|
||||
|
||||
- Display the full list of builtin commands:
|
||||
|
||||
`help`
|
||||
|
||||
- Print instructions on how to use the `while` loop construct:
|
||||
|
||||
`help while`
|
||||
|
||||
- Print instructions on how to use the `for` loop construct:
|
||||
|
||||
`help for`
|
||||
|
||||
- Print instructions on how to use `[[ ]]` for conditional commands:
|
||||
|
||||
`help [[ ]]`
|
||||
|
||||
- Print instruction on how to use `(( ))` to evaluate arithmetic expressions:
|
||||
|
||||
`help \( \)`
|
||||
|
||||
- Print instructions on how to use the `cd` command:
|
||||
|
||||
`help cd`
|
16
pages/common/unset.md
Normal file
16
pages/common/unset.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# unset
|
||||
|
||||
> Remove shell variables or functions.
|
||||
> More information: <https://manned.org/unset>.
|
||||
|
||||
- Remove the variable `foo`, or if the variable doesn't exist, remove the function `foo`:
|
||||
|
||||
`unset {{foo}}`
|
||||
|
||||
- Remove the variables foo and bar:
|
||||
|
||||
`unset -v {{foo}} {{bar}}`
|
||||
|
||||
- Remove the function my_func:
|
||||
|
||||
`unset -f {{my_func}}`
|
Reference in New Issue
Block a user