From 97dcf3c1177a4cc4696106012c0e466f7072b099 Mon Sep 17 00:00:00 2001 From: Hendrik Jäger Date: Sat, 31 Dec 2022 23:13:05 +0100 Subject: add some more functions and zle widgets --- .zshrc | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.zshrc b/.zshrc index 2459786..320fc57 100644 --- a/.zshrc +++ b/.zshrc @@ -129,9 +129,18 @@ autoload ~/.zsh_functions/[^_]*(-.:t) autoload -Uz vcs_info -autoload -Uz zcalc -autoload -Uz zargs +zstyle ':vcs_info:*' enable git +# similar to xargs +autoload -U zargs + +# similar to rename or mmv +autoload -U zmv +autoload -U zln +autoload -U zcp + + +# zle customization # spawn editor on current command line autoload -Uz edit-command-line @@ -139,6 +148,11 @@ zle -N edit-command-line bindkey -M vicmd '^X^E' edit-command-line bindkey -M viins '^X^E' edit-command-line +# show globbing results live +autoload insert-files +zle -N insert-files +bindkey '^Xf' insert-files + #this mainly sets vars, binds keys, does zle stuff # zinit load 'https://github.com/laurenkt/zsh-vimto' -- cgit v1.2.3