Last active
December 11, 2021 15:36
-
-
Save Roytangrb/30c8b37fe73813a4f3d672ea934c3341 to your computer and use it in GitHub Desktop.
My mac zsh config
This file contains hidden or 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
| # prompt | |
| # include important env variable in prompt | |
| PROMPT='$ENVIRONMENT_NAME %B%F{240}%2~%f %# ' | |
| # custom zsh config | |
| # UP and DOWN startsWith search | |
| autoload -U history-search-end | |
| zle -N history-beginning-search-backward-end history-search-end | |
| zle -N history-beginning-search-forward-end history-search-end | |
| bindkey "^[[A" history-beginning-search-backward-end | |
| bindkey "^[[B" history-beginning-search-forward-end | |
| # ctrl + u clear to beginning of line | |
| bindkey \^U backward-kill-line | |
| # Execute long commands with edit | |
| # Enable Ctrl-x-e to edit command line | |
| autoload -U edit-command-line | |
| # Emacs style | |
| zle -N edit-command-line | |
| bindkey '^xe' edit-command-line | |
| bindkey '^x^e' edit-command-line | |
| # Auto-complete case insensitive | |
| zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment