Files
tldr/pages/common/set.md
Managor f4219fd1eb set: add emacs mode (#14063)
Update set.md
2024-10-08 18:23:42 +02:00

524 B

set

Toggle shell options or set the values of positional parameters. More information: https://manned.org/set.1posix.

  • Display the names and values of shell variables:

set

  • Export newly initialized variables to child processes:

set -a

  • Write formatted messages to stderr when jobs finish:

set -b

  • Write and edit text in the command-line with vi-like keybindings (e.g. yy):

set -o {{vi}}

  • Return to default mode:

set -o {{emacs}}

  • Exit the shell when (some) commands fail:

set -e