summaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.zshrc20
1 files changed, 12 insertions, 8 deletions
diff --git a/.zshrc b/.zshrc
index 7298612..e81a485 100644
--- a/.zshrc
+++ b/.zshrc
@@ -47,15 +47,16 @@ export LESS_TERMCAP_ue=$'\e[0m'
export LESS_TERMCAP_us=$'\e[1;35m'
export GROFF_NO_SGR=1
-# exit bad
-[ $NOEXIT ] && alias exit="echo Exiting is disabled"
+.reload() {
+ # Enable zsh auto suggestions
+ autoload compinit && compinit
+ source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
+ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
+ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#696e8a"
+ ZSH_AUTOSUGGEST_STRATEGY=(completion history)
+}
-# Enable zsh auto suggestions
-autoload compinit && compinit
-source $HOME/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
-source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
-ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=#696e8a"
-ZSH_AUTOSUGGEST_STRATEGY=(completion history)
+.reload
# Enable zsh keybinds for home, end, and other movement keybinds
bindkey "\e[1;5D" backward-word
@@ -67,6 +68,9 @@ bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "\e\d" undo
+zle -N reload .reload
+bindkey "^R" reload
+
# GPG SETUP FOR SSH
export GPG_TTY=$(tty)
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)