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:

push tempfile commands to history master
authormartin f. krafft <madduck@madduck.net>
Wed, 21 Sep 2022 10:16:30 +0000 (12:16 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 21 Sep 2022 10:16:30 +0000 (12:16 +0200)
.zsh/zshrc/20-tempfile+dir_functions

index e782fe027c3779d8381262a5cf82b3ae66682cde..6ca6998c579aaa4ef76fc6b9cc7c51df6b73e407 100644 (file)
@@ -20,10 +20,11 @@ cdt() {
     builtin cd "$REPLY"
   fi
   echo "$REPLY"
+  print -s cd "$REPLY"
 }
 
 _cdt() {
-  cdt "$@"
+  cdt "$@" >/dev/null
   zle reset-prompt
   zle -M "$REPLY"
 }
@@ -56,6 +57,7 @@ vit() {
   sensible-editor +start "$REPLY" </dev/tty >/dev/tty
   ln -Tsf $file ${TMPDIR:-/tmp}/${tag:-vit}
   echo "$REPLY"
+  print -s sensible-editor "$REPLY"
 }
 _vit() {
   vit "$@" >/dev/null