zsh: setopt: refactor comments
This commit is contained in:
parent
30f65d385f
commit
2db37ccc1f
1 changed files with 29 additions and 14 deletions
|
|
@ -1,28 +1,43 @@
|
||||||
# ===== basics
|
# ===== basics
|
||||||
setopt no_beep # don't beep on error
|
# disable beeps
|
||||||
setopt interactive_comments # Allow comments even in interactive shells (especially for Muness)
|
setopt no_beep
|
||||||
|
# allow comments in interactive shells
|
||||||
|
setopt interactive_comments
|
||||||
|
|
||||||
# ===== directory related
|
# ===== directory related
|
||||||
setopt auto_cd # If you type foo, and it isn't a command, and it is a directory in your cdpath, go there
|
# If you type foo, and it isn't a command, and it is a directory in your
|
||||||
setopt cdablevarS # if argument to cd is the name of a parameter whose value is a valid directory, it will become the current directory
|
# cdpath, go there.
|
||||||
|
setopt auto_cd
|
||||||
|
# if argument to cd is the name of a parameter whose value is a valid directory, it will become the current directory
|
||||||
|
setopt cdablevarS
|
||||||
|
|
||||||
# ===== directory stack
|
# ===== directory stack
|
||||||
# setopt pushd_ignore_dups # don't push multiple copies of the same directory onto the directory stack
|
# do not push duplicates onto the directory stack
|
||||||
|
# setopt pushd_ignore_dups
|
||||||
|
|
||||||
# ===== expansion and globbing
|
# ===== expansion and globbing
|
||||||
setopt extended_glob # treat #, ~, and ^ as part of patterns for filename generation
|
# treat #, ~ and ^ as part of patterns for filename generation
|
||||||
|
setopt extended_glob
|
||||||
|
|
||||||
# ===== completion
|
# ===== completion
|
||||||
setopt always_to_end # When completing from the middle of a word, move the cursor to the end of the word
|
# When completing from the middle of a word, move the cursor to the end of the word
|
||||||
setopt auto_menu # show completion menu on successive tab press. needs unsetop menu_complete to work
|
setopt always_to_end
|
||||||
setopt auto_name_dirs # any parameter that is set to the absolute name of a directory immediately becomes a name for that directory
|
# show completion menu on successive tab press. needs unsetop menu_complete to work
|
||||||
setopt complete_in_word # Allow completion from within a word/phrase
|
setopt auto_menu
|
||||||
|
# any parameter that is set to the absolute name of a directory immediately becomes a name for that directory
|
||||||
|
setopt auto_name_dirs
|
||||||
|
# Allow completion from within a word/phrase
|
||||||
|
setopt complete_in_word
|
||||||
|
|
||||||
unsetopt menu_complete # do not autoselect the first completion entry
|
# do not autoselect the first completion entry
|
||||||
|
unsetopt menu_complete
|
||||||
|
|
||||||
# ===== correction
|
# ===== correction
|
||||||
# setopt correct # spelling correction for commands
|
# suggest a similar command name if the current one doesn't exist
|
||||||
# setopt correctall # spelling correction for arguments
|
# setopt correct
|
||||||
|
# suggest a similar argument name if the current one doesn't exist
|
||||||
|
# setopt correctall
|
||||||
|
|
||||||
# ===== scripts and functions
|
# ===== scripts and functions
|
||||||
setopt multios # perform implicit tees or cats when multiple redirections are attempted
|
# perform implicit tees or cats when multiple redirections are attempted
|
||||||
|
setopt multios
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue