2017-10-03 10:55:26 -07:00
|
|
|
## Plugin config
|
|
|
|
AUTOPAIR_SPC_WIDGET=magic-space
|
|
|
|
|
2015-12-26 23:31:25 -08:00
|
|
|
## General
|
2015-06-19 07:03:47 -07:00
|
|
|
# Treat these characters as part of a word.
|
2015-12-17 02:28:23 -08:00
|
|
|
WORDCHARS='_-*?[]~&.;!#$%^(){}<>'
|
2015-06-19 07:03:47 -07:00
|
|
|
|
2017-06-24 08:30:51 -07:00
|
|
|
unsetopt BRACE_CCL # Allow brace character class list expansion.
|
2015-12-26 23:31:25 -08:00
|
|
|
setopt COMBINING_CHARS # Combine zero-length punc chars (accents) with base char
|
|
|
|
setopt RC_QUOTES # Allow 'Henry''s Garage' instead of 'Henry'\''s Garage'
|
|
|
|
setopt HASH_LIST_ALL
|
|
|
|
unsetopt CORRECT_ALL
|
|
|
|
unsetopt NOMATCH
|
2015-06-19 07:03:47 -07:00
|
|
|
unsetopt MAIL_WARNING # Don't print a warning message if a mail file has been accessed.
|
2015-12-17 02:28:23 -08:00
|
|
|
unsetopt BEEP # Hush now, quiet now.
|
2015-06-19 07:03:47 -07:00
|
|
|
|
2015-12-26 23:31:25 -08:00
|
|
|
## Jobs
|
2015-06-19 07:03:47 -07:00
|
|
|
setopt LONG_LIST_JOBS # List jobs in the long format by default.
|
|
|
|
setopt AUTO_RESUME # Attempt to resume existing job before creating a new process.
|
|
|
|
setopt NOTIFY # Report status of background jobs immediately.
|
|
|
|
unsetopt BG_NICE # Don't run all background jobs at a lower priority.
|
|
|
|
unsetopt HUP # Don't kill jobs on shell exit.
|
|
|
|
unsetopt CHECK_JOBS # Don't report on jobs when shell exit.
|
|
|
|
|
2015-12-26 23:31:25 -08:00
|
|
|
## History
|
2017-10-03 10:55:26 -07:00
|
|
|
HISTFILE="${CACHE_DIR}/zhistory"
|
|
|
|
HISTSIZE=1000 # Max events to store in internal history.
|
|
|
|
SAVEHIST=1000 # Max events to store in history file.
|
2015-06-19 07:03:47 -07:00
|
|
|
|
2015-09-29 13:34:44 -07:00
|
|
|
setopt BANG_HIST # Don't treat '!' specially during expansion.
|
2015-06-19 07:03:47 -07:00
|
|
|
setopt EXTENDED_HISTORY # Write the history file in the ':start:elapsed;command' format.
|
2015-12-26 23:31:25 -08:00
|
|
|
setopt APPEND_HISTORY # Appends history to history file on exit
|
2015-06-19 07:03:47 -07:00
|
|
|
setopt INC_APPEND_HISTORY # Write to the history file immediately, not when the shell exits.
|
|
|
|
setopt SHARE_HISTORY # Share history between all sessions.
|
|
|
|
setopt HIST_EXPIRE_DUPS_FIRST # Expire a duplicate event first when trimming history.
|
|
|
|
setopt HIST_IGNORE_DUPS # Do not record an event that was just recorded again.
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS # Delete an old recorded event if a new event is a duplicate.
|
|
|
|
setopt HIST_FIND_NO_DUPS # Do not display a previously found event.
|
|
|
|
setopt HIST_IGNORE_SPACE # Do not record an event starting with a space.
|
|
|
|
setopt HIST_SAVE_NO_DUPS # Do not write a duplicate event to the history file.
|
|
|
|
setopt HIST_VERIFY # Do not execute immediately upon history expansion.
|
|
|
|
setopt HIST_BEEP # Beep when accessing non-existent history.
|
|
|
|
|
2015-12-26 23:31:25 -08:00
|
|
|
## Directories
|
|
|
|
DIRSTACKSIZE=9
|
2015-06-19 07:03:47 -07:00
|
|
|
setopt AUTO_CD # Auto changes to a directory without typing cd.
|
|
|
|
setopt AUTO_PUSHD # Push the old directory onto the stack on cd.
|
|
|
|
setopt PUSHD_IGNORE_DUPS # Do not store duplicates in the stack.
|
|
|
|
setopt PUSHD_SILENT # Do not print the directory stack after pushd or popd.
|
|
|
|
setopt PUSHD_TO_HOME # Push to home directory when no argument is given.
|
|
|
|
setopt CDABLE_VARS # Change directory to a path stored in a variable.
|
|
|
|
setopt MULTIOS # Write to multiple descriptors.
|
|
|
|
setopt EXTENDED_GLOB # Use extended globbing syntax.
|
|
|
|
unsetopt GLOB_DOTS
|
2015-09-14 20:41:01 -07:00
|
|
|
unsetopt AUTO_NAME_DIRS # Don't add variable-stored paths to ~ list.
|