zsh: tune options
This commit is contained in:
@@ -75,6 +75,8 @@ in
|
||||
|
||||
# emulate bash keybindings
|
||||
bindkey -e
|
||||
# emulate vim keybindings (a.k.a. `setopt VI`)
|
||||
# bindkey -v
|
||||
|
||||
# fixup bindings not handled by bash, see: <https://wiki.archlinux.org/title/Zsh#Key_bindings>
|
||||
# `bindkey -e` seems to define most of the `key` array. everything in the Arch defaults except for these:
|
||||
@@ -152,19 +154,27 @@ in
|
||||
};
|
||||
setOptions = [
|
||||
# docs: `man zshoptions`
|
||||
# nixos defaults:
|
||||
"HIST_FCNTL_LOCK"
|
||||
"HIST_IGNORE_DUPS"
|
||||
"HIST_EXPIRE_DUPS_FIRST"
|
||||
"SHARE_HISTORY"
|
||||
# customizations:
|
||||
"AUTO_CD" # type directory name to go there
|
||||
"AUTO_MENU" # show auto-complete menu on double-tab
|
||||
"CDABLE_VARS" # allow auto-cd to use my `hash` aliases -- not just immediate subdirs
|
||||
"CLOBBER" # allow `foo > bar.txt` to overwrite bar.txt
|
||||
# "CLOBBER" # (zsh default) allow `foo > bar.txt` to overwrite bar.txt
|
||||
# "CORRECT" # try to correct typo'd commands
|
||||
# "EXTENDED_HISTORY" # save timestamps and duration in history file
|
||||
"GLOB_DOTS" # make `echo ~/*` include "hidden" .-prefixed entries
|
||||
"GLOB_STAR_SHORT" # allow `**` as shorthand for `**/*` (i.e. recursive glob)
|
||||
"HIST_EXPIRE_DUPS_FIRST" # when history file needs to be trimmed, remove oldest _non-unique_ entry instead of just the oldest entry.
|
||||
"HIST_FCNTL_LOCK" # (nixos default) more reliable locking/concurrency over history file
|
||||
"HIST_FIND_NO_DUPS" # when searching history, skip over entries which have already been shown
|
||||
"HIST_IGNORE_DUPS" # (nixos default) when a command is invoked twice in a row, only add it to history file once
|
||||
"INTERACTIVE_COMMENTS" # allow comments even in interactive shells
|
||||
"NO_BEEP" # don't beep on invalid line-editor operations (e.g. bad completions)
|
||||
"NO_CORRECT" # don't try to correct commands
|
||||
# "NULL_GLOB" # make globs which yield 0 results not be an error
|
||||
"PIPE_FAIL" # when `cmd_a | cmd_b`, make $? be non-zero if *any* of cmd_a or cmd_b fail
|
||||
"PUSHD_SILENT" # `pushd`: don't print directory stack
|
||||
"RM_STAR_SILENT" # disable `rm *` confirmations
|
||||
"SHARE_HISTORY" # share history across all zsh instances
|
||||
];
|
||||
|
||||
# .zshenv config:
|
||||
|
Reference in New Issue
Block a user