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:
parent
ef86f64945
commit
c2f60ba7fd
|
|
@ -63,6 +63,12 @@ and how it works.
|
||||||
- Automatic use of the directory stack `popd` to go back whence you came
|
- Automatic use of the directory stack `popd` to go back whence you came
|
||||||
- Smart history
|
- Smart history
|
||||||
- Plug-ins chosen for greatness
|
- 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
|
## Breakdown
|
||||||
The following sections break down what is in the repository and what
|
The following sections break down what is in the repository and what
|
||||||
|
|
|
||||||
19
zshrc
19
zshrc
|
|
@ -36,12 +36,19 @@ source ${ZDOTDIR}/history
|
||||||
source ${ZDOTDIR}/chpwd
|
source ${ZDOTDIR}/chpwd
|
||||||
|
|
||||||
|
|
||||||
## Set option
|
## Set options
|
||||||
#setopt emacs ## Emacs style keybinds
|
## NOTE: zsh ignores case and underscores
|
||||||
setopt vi
|
setopt vi ## Use vi style keybinds
|
||||||
setopt autocd ## Change to directory if given as command
|
setopt autoCd ## Change to directory if given as command
|
||||||
setopt autopushd ## Automatically use pushd and stack
|
setopt autoPushd ## Automatically use pushd and stack
|
||||||
setopt correct ## Pick up on Spelling errors
|
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
|
source ${ZDOTDIR}/completion
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user