]> git.madduck.net Git - etc/zsh.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add run_on_load functionality
authormartin f. krafft <madduck@madduck.net>
Tue, 10 Mar 2020 18:01:14 +0000 (19:01 +0100)
committermartin f. krafft <madduck@madduck.net>
Tue, 10 Mar 2020 18:01:14 +0000 (19:01 +0100)
.zsh/zshrc/99-prefill_prompt

index 0b2562e27da4635da97ce0f96bb379c64233897d..21555be48d43616347f2810eff6571e24b3987c8 100644 (file)
@@ -12,4 +12,9 @@ if [[ -n "$ZSH_PREFILL_CMD" ]]; then
   unset ZSH_PREFILL_CMD
 fi
 
   unset ZSH_PREFILL_CMD
 fi
 
+if [[ -n "$ZSH_RUN_ON_LOAD" ]]; then
+  eval $ZSH_RUN_ON_LOAD
+  unset ZSH_RUN_ON_LOAD
+fi
+
 # vim:ft=zsh
 # vim:ft=zsh