summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Jäger <gitcommit@henk.geekmail.org>2022-12-31 23:13:05 +0100
committerHendrik Jäger <gitcommit@henk.geekmail.org>2023-01-08 13:37:02 +0100
commit97dcf3c1177a4cc4696106012c0e466f7072b099 (patch)
treebc6d8b829d596813d1d124d710c4817dd1bfb32f
parent0577c37fd311a71cfdd79e56c8596095c5cf261b (diff)
add some more functions and zle widgets
-rw-r--r--.zshrc18
1 files 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'