Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make zsh load less when not interactive
- Loading branch information
Showing
9 changed files
with
58 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Use vi keybindings to edit command line | ||
bindkey -v | ||
|
||
# Make backspace work | ||
bindkey '^?' backward-delete-char | ||
bindkey '^H' backward-delete-char | ||
|
||
# Make sure that C-a and C-e do the appropriate things | ||
# Discovered this when using zsh inside a tmux that was inside | ||
# another tmux. It would just print ^A or ^E instead of doing | ||
# the action | ||
bindkey '^A' beginning-of-line | ||
bindkey '^E' end-of-line | ||
|
||
# Look in history for a line that matches the current up | ||
# to where the cursor currently is, uses up/down arrow keys | ||
bindkey '^[[A' history-beginning-search-backward | ||
bindkey '^[[B' history-beginning-search-forward | ||
|
||
# Search in history for a command that begins with the first | ||
# word of the current line, uses up/down arrow keys | ||
# bindkey '^[[A' up-line-or-search | ||
# bindkey '^[[B' down-line-or-search | ||
|
||
# Expansion of history | ||
bindkey ' ' magic-space # also do history expansion on space | ||
|
||
# Better movement on the line | ||
# bindkey '^b' backward-word | ||
# bindkey '^f' forward-word | ||
# bindkey '^d' delete-word | ||
# bindkey '^u' kill-whole-line | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
setopt correct_all | ||
|
||
alias man='nocorrect man' | ||
alias mv='nocorrect mv' | ||
alias mkdir='nocorrect mkdir -p' | ||
|
||
## SPROMPT - the spelling prompt | ||
SPROMPT='zsh: correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) ' | ||
SPROMPT='zsh: correct '%R' to '%r' ? ([Y]es/[N]o/[E]dit/[A]bort) ' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters