compopt, disown, help, unset: move to common (#14029)
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
# 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}}`
|
@@ -1,21 +0,0 @@
|
||||
# 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}}`
|
@@ -1,28 +0,0 @@
|
||||
# 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`
|
@@ -1,16 +0,0 @@
|
||||
# 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