|
1 |
| -# Movement options |
2 |
| -setopt autocd autopushd pushdminus pushdsilent pushdtohome cdablevars pushd_ignore_dups |
| 1 | +zplug "willghatch/zsh-saneopt" |
| 2 | + |
| 3 | +# 16.2.1 Changing Directories |
| 4 | +setopt auto_cd # If a command isn't valid, but is a directory, cd to that dir. |
| 5 | +setopt auto_pushd # Make cd push the old directory onto the dirstack. |
| 6 | +setopt cdable_vars # Change directory to a path stored in a variable. |
| 7 | +setopt pushd_ignore_dups # Don't push multiple copies of the same directory onto the dirstack. |
| 8 | +setopt pushd_minus # Exchanges meanings of +/- when navigating the dirstack. |
| 9 | +setopt pushd_silent # Do not print the directory stack after pushd or popd. |
| 10 | +setopt pushd_to_home # Push to home directory when no argument is given. |
3 | 11 | DIRSTACKSIZE=5
|
4 | 12 |
|
5 |
| -# Enable extended globbing |
6 |
| -setopt extendedglob |
| 13 | +# General options |
| 14 | +setopt combining_chars # Combine 0-len chars with the base character (eg: accents). |
| 15 | +setopt interactive_comments # Enable comments in interactive shell. |
| 16 | +setopt rc_quotes # Allow 'Hitchhikers''s Guide' instead of 'Hitchhikers'\''s Guide'. |
| 17 | +setopt NO_mail_warning # Don't print a warning message if a mail file has been accessed. |
| 18 | +setopt NO_beep # Don't Beep on error in line editor. |
| 19 | + |
| 20 | +# Expansion and Globbing |
| 21 | +setopt extended_glob # Use extended globbing syntax. |
| 22 | +setopt glob_dots # Don't hide dotfiles from glob patterns. |
| 23 | +setopt no_rm_star_silent # Ask for confirmation for `rm *' or `rm path/*' |
| 24 | + |
| 25 | +# Input/Output |
| 26 | +setopt NO_clobber # Don't overwrite files with >. Use >| to bypass. |
| 27 | + |
| 28 | +# Scripts and Functions |
| 29 | +setopt multios # Write to multiple descriptors. |
| 30 | + |
| 31 | +# Job options |
| 32 | +setopt long_list_jobs # List jobs in the long format by default. |
| 33 | +setopt auto_resume # Attempt to resume existing job before creating a new process. |
| 34 | +setopt notify # Report status of background jobs immediately. |
| 35 | +setopt NO_bg_nice # Don't run all background jobs at a lower priority. |
| 36 | +setopt NO_hup # Don't kill jobs on shell exit. |
| 37 | +setopt NO_check_jobs # Don't report on jobs when shell exit. |
| 38 | +setopt no_auto_menu # Require an extra TAB press to open the completion menu |
| 39 | + |
| 40 | +# Use built-in paste magic. |
| 41 | +autoload -Uz bracketed-paste-url-magic |
| 42 | +zle -N bracketed-paste bracketed-paste-url-magic |
| 43 | +autoload -Uz url-quote-magic |
| 44 | +zle -N self-insert url-quote-magic |
7 | 45 |
|
8 | 46 | # Allow [ or ] whereever you want
|
9 | 47 | unsetopt nomatch
|
10 |
| - |
11 |
| -setopt interactive_comments |
12 |
| -setopt no_flow_control |
|
0 commit comments