LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

unsetopt

Disable zsh shell options

TLDR

Disable option
$ unsetopt [optionname]
copy
Disable glob
$ unsetopt glob
copy
Disable extended glob
$ unsetopt extendedglob
copy
Show all options
$ unsetopt
copy

SYNOPSIS

unsetopt [options]

DESCRIPTION

unsetopt is a zsh builtin that disables shell options, serving as the counterpart to setopt. It controls various aspects of zsh behavior including filename globbing, command correction, history handling, and prompt expansion.When called without arguments, unsetopt displays all options that are currently unset. Option names are case-insensitive and underscores in option names are ignored, so extendedglob, EXTENDED_GLOB, and ExtendedGlob all refer to the same option.Changes only affect the current shell session unless added to zsh configuration files like ~/.zshrc. This command is specific to zsh and has no equivalent in bash, which uses shopt -u for a similar purpose with different option names.

PARAMETERS

option

Option to disable.

COMMON OPTIONS

- glob - Filename globbing- extendedglob - Extended patterns- nomatch - Error on no match- correct - Command correction

CAVEATS

Zsh only. Use setopt to enable. See zshoptions(1).

HISTORY

unsetopt is a zsh builtin for disabling shell options, counterpart to setopt.

SEE ALSO

setopt(1), zsh(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid