summaryrefslogtreecommitdiff
path: root/config/essentials/zsh/.zshrc
diff options
context:
space:
mode:
authorRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-03 18:29:31 +0100
committerRaymaekers Luca <raymaekers.luca@gmail.com>2024-02-03 18:29:31 +0100
commit07ad983aebf388065be7d650b7e08204100d1ed4 (patch)
tree5a3ae361ea5e84c36a577f385bce308bab0dfee1 /config/essentials/zsh/.zshrc
parent541d9fa7014c5c197f7c8a09fa159ac84bd9a6a8 (diff)
Update shell
*Added alias *changed mutt to not use symlink *changed starship looks *use comp.zsh instead of plugin *remove git-alias plugin *added auto rehash *removed rehash hook
Diffstat (limited to 'config/essentials/zsh/.zshrc')
-rw-r--r--config/essentials/zsh/.zshrc19
1 files changed, 1 insertions, 18 deletions
diff --git a/config/essentials/zsh/.zshrc b/config/essentials/zsh/.zshrc
index f9ca5c3..9b105e6 100644
--- a/config/essentials/zsh/.zshrc
+++ b/config/essentials/zsh/.zshrc
@@ -22,8 +22,8 @@ zle -N change-surround surround
### Source files
. $XDG_CONFIG_HOME/shell/functions.sh
. $XDG_CONFIG_HOME/shell/aliases.sh
+. $XDG_CONFIG_HOME/zsh/comp.zsh
# . $XDG_CONFIG_HOME/zsh/prompt.zsh
-# . $XDG_CONFIG_HOME/zsh/comp.zsh
# . $XDG_CONFIG_HOME/zsh/plugins.zsh
### Programs
@@ -34,11 +34,9 @@ eval "$(zoxide init zsh)"
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
plug "kutsan/zsh-system-clipboard"
plug "xPMo/zsh-toggle-command-prefix"
-plug "zap-zsh/completions"
plug "zap-zsh/vim"
plug "zsh-users/zsh-autosuggestions"
plug "zsh-users/zsh-completions"
-plug "chivalryq/git-alias"
plug "zap-zsh/fzf"
plug "zdharma-continuum/fast-syntax-highlighting"
plug "zsh-users/zsh-history-substring-search"
@@ -107,21 +105,6 @@ bindkey -M menuselect '^xh' accept-and-hold # Hold
bindkey -M menuselect '^xn' accept-and-infer-next-history # Next
bindkey -M menuselect '^xu' undo # Undo
-### Hooks
-## rehash hook
-zshcache_time="$(date +%s%N)"
-autoload -Uz add-zsh-hook
-rehash_precmd() {
- if [[ -a /var/cache/zsh/pacman ]]; then
- local paccache_time="$(date -r /var/cache/zsh/pacman +%s%N)"
- if (( zshcache_time < paccache_time )); then
- rehash
- zshcache_time="$paccache_time"
- fi
- fi
-}
-## window title hooks
-add-zsh-hook -Uz precmd rehash_precmd
set_wt_action () {
print -n "\e]0;$1\a\033[0m"
}