47 lines
1.5 KiB
Bash
47 lines
1.5 KiB
Bash
# ===== important
|
|
# warns when creating a global variable from inside a function
|
|
setopt warn_create_global
|
|
|
|
# ===== basics
|
|
# disable beeps
|
|
setopt no_beep
|
|
# disabled exit on <C-D>
|
|
setopt ignore_eof
|
|
|
|
# ===== directory related
|
|
# If you type foo, and it isn't a command, and it is a directory in your
|
|
# cdpath, go there.
|
|
setopt auto_cd
|
|
|
|
# ===== directory stack
|
|
# automatically push cd-ed directories onto the directory stack
|
|
setopt auto_pushd
|
|
# do not push duplicates onto the directory stack
|
|
setopt pushd_ignore_dups
|
|
# Exchange the meaning of + and - when specifying a directory on the stack.
|
|
# This way cd -<Tab> lists the last used directory first, which is more
|
|
# natural because cd - goes to the last directory.
|
|
setopt pushd_minus
|
|
|
|
# ===== expansion and globbing
|
|
# treat #, ~ and ^ as part of patterns for filename generation
|
|
setopt extended_glob
|
|
|
|
# ===== completion
|
|
# When completing from the middle of a word, move the cursor to the end of the word
|
|
setopt always_to_end
|
|
# show completion menu on successive tab press. needs unsetop menu_complete to work
|
|
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
|
|
|
|
# do not autoselect the first completion entry
|
|
unsetopt menu_complete
|
|
|
|
# ===== correction
|
|
# suggest a similar command name if the current one doesn't exist
|
|
#setopt correct
|
|
# suggest a similar argument name if the current one doesn't exist
|
|
#setopt correctall
|