]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/commitdiff
add some more functions and zle widgets
authorHendrik Jäger <gitcommit@henk.geekmail.org>
Sat, 31 Dec 2022 22:13:05 +0000 (23:13 +0100)
committerHendrik Jäger <gitcommit@henk.geekmail.org>
Sun, 8 Jan 2023 12:37:02 +0000 (13:37 +0100)
.zshrc

diff --git a/.zshrc b/.zshrc
index 24597869ae82b3d4cafc24fe00635c06b1f2c3d4..320fc5747dbd805af0ce274362157509ba983467 100644 (file)
--- 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'