HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

setopt — Set Z shell (`zsh`) options. Note: Zsh options are case-insensitive and underscores are ignored. See

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandoptionsnotezshclisetoptset

Problem

How to use the setopt command: Set Z shell (zsh) options. Note: Zsh options are case-insensitive and underscores are ignored. See also: unsetopt. More information: <https://zsh.sourceforge.io/Doc/Release/Options.html>.

Solution

setopt — Set Z shell (zsh) options. Note: Zsh options are case-insensitive and underscores are ignored. See also: unsetopt. More information: <https://zsh.sourceforge.io/Doc/Release/Options.html>.

List enabled options:
setopt


Set an option:
setopt {{option}}


Display all available options and their status:
set -o

Code Snippets

List enabled options

setopt

Set an option

setopt {{option}}

Display all available options and their status

set -o

Context

tldr-pages: common/setopt

Revisions (0)

No revisions yet.