feat(zshrc): Enable more options and Document

- Extended Globbing
- Chase Dots
- Mark Dirs
- rm Star Wait
- Interactive comments

These options have been enabled as I belive that I will find them
useful. For more information on functionality please see appropriate
documentation.
This commit is contained in:
Robert Morrison 2023-04-11 00:00:02 +01:00
parent ef86f64945
commit c2f60ba7fd
Signed by: robert
GPG Key ID: 73E012EB3F4EC696
2 changed files with 19 additions and 6 deletions

View File

@ -63,6 +63,12 @@ and how it works.
- Automatic use of the directory stack `popd` to go back whence you came
- Smart history
- Plug-ins chosen for greatness
- Extended Globbing enabled.
- 10 second thinking time enforced for big deletes
- Expanded directories automatically have `/` appended
- Allow comments in interactive mode (this may be useful to mark history
items)
- Neaten paths like `../foo/..` to `..` (ChaseDots)
## Breakdown
The following sections break down what is in the repository and what

17
zshrc
View File

@ -36,12 +36,19 @@ source ${ZDOTDIR}/history
source ${ZDOTDIR}/chpwd
## Set option
#setopt emacs ## Emacs style keybinds
setopt vi
setopt autocd ## Change to directory if given as command
setopt autopushd ## Automatically use pushd and stack
## Set options
## NOTE: zsh ignores case and underscores
setopt vi ## Use vi style keybinds
setopt autoCd ## Change to directory if given as command
setopt autoPushd ## Automatically use pushd and stack
setopt chaseDots ## Remove contradictory .. from cd path (e.g cd foo/bar/.. -> cd foo)
setopt correct ## Pick up on Spelling errors
setopt extendedGlob ## Allow extended globbing (see man zshexpn)
setopt markDirs ## Add a trailing '/' to directories when globbing
setopt interactiveComments ## allow comments in interactive shells
setopt rmStarWait ## wait 10 seconds when confirming large deletes
source ${ZDOTDIR}/completion