]> git.netwichtig.de Git - user/henk/vcsh/zsh.git/blobdiff - .zshrc
cleanup: finalize move from zinit to zgenom
[user/henk/vcsh/zsh.git] / .zshrc
diff --git a/.zshrc b/.zshrc
index 2f9d6682a0ab309554b021705ffe575de0fed657..f6d1c55c83a7284b4bda404421451dfeea046607 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -19,6 +19,8 @@ REPORTTIME=10
 
 
 # where zsh looks for functions
+
+# add my own functions
 fpath=(~/.zsh_functions $fpath)
 
 
@@ -37,12 +39,9 @@ hash -d fortunes=~/Data/henksfiles/workinprogress/Dokumente/fortunes/
 
 # aliases are usually independent and standalone
 source ~/.zsh_aliases
-# TODO break this up or make functions or get rid?
-source ~/.zsh_qemu
 
 
 # load plugin manager after all 'static' stuff is done
-# source ~/Data/public/software/zinit/zinit.zsh
 source "${HOME}/.zgenom/zgenom.zsh"
 # Check for plugin and zgenom updates every 7 days
 # This does not increase the startup time.
@@ -50,8 +49,6 @@ zgenom autoupdate
 
 
 # mostly static stuff, env vars
-# zinit load 'https://github.com/joel-porquet/zsh-dircolors-solarized'
-# zinit load "https://github.com/greymd/tmux-xpanes"
 zgenom load 'https://github.com/joel-porquet/zsh-dircolors-solarized'
 zgenom load "https://github.com/greymd/tmux-xpanes"
 
@@ -109,7 +106,6 @@ setopt NO_SH_WORD_SPLIT
 
 
 # load before completion system initialization
-# zinit load 'https://github.com/zsh-users/zsh-completions'
 zgenom load 'https://github.com/zsh-users/zsh-completions'
 
 # initialize completion system before loading plugins and external configs
@@ -129,23 +125,35 @@ 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
 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'
-zgenom load 'https://github.com/laurenkt/zsh-vimto'
+# zgenom load 'https://github.com/laurenkt/zsh-vimto'
 
 # functions and an autoload, should be fine here
-# zinit load 'https://github.com/MichaelAquilina/zsh-you-should-use'
 zgenom load 'https://github.com/MichaelAquilina/zsh-you-should-use'
 
 
@@ -155,11 +163,7 @@ zgenom load 'https://github.com/MichaelAquilina/zsh-you-should-use'
 # source ~/.zsh_functions_taskwarrior
 
 
-# TODO break this up
-source ~/.zsh_local
-
-# TODO break this up
-for f in ~/.env_*(N)
+for f in ~/.zsh_local*(N)
 do
        source $f
 done
@@ -174,7 +178,6 @@ done
 
 
 # should probably be closer to the bottom than the top?
-# zinit load 'https://github.com/nojhan/liquidprompt'
 zgenom load 'https://github.com/nojhan/liquidprompt'