zsh:オプションが有効になっていることを確認する方法

zsh:オプションが有効になっていることを確認する方法

オプションを有効にするには、次のものを使用できますsetopt

setopt extended_glob

オプションが現在有効になっていることをどのように確認できますか?

ベストアンサー1

では、有効なオプションの表示と有効になっていないオプションの表示をzsh使用できます。setoptunsetopt

$ setopt
autocd
histignorealldups
interactive
monitor
sharehistory
shinstdin
zle

$ unsetopt
noaliases
allexport
noalwayslastprompt
alwaystoend
noappendhistory
autocd
autocontinue
noautolist
noautomenu
autonamedirs
.....

bash使用できますshopt -p

おすすめ記事