]> git.donarmstrong.com Git - zsh.git/commitdiff
run tempfuncs a little earlier
authormartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 20:11:05 +0000 (21:11 +0100)
committermartin f. krafft <madduck@madduck.net>
Fri, 9 May 2008 21:02:42 +0000 (22:02 +0100)
.zsh/zshrc/39_tempfuncs [new file with mode: 0644]
.zsh/zshrc/40_tempfuncs [deleted file]

diff --git a/.zsh/zshrc/39_tempfuncs b/.zsh/zshrc/39_tempfuncs
new file mode 100644 (file)
index 0000000..dd4eb07
--- /dev/null
@@ -0,0 +1,23 @@
+# zshrc/40_tempfuncs
+#
+# Helper functions to create temporary files and directories
+#
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: http://git.madduck.net/v/etc/zsh.git
+#
+
+cdt () {
+  cd $(mktemp -td cdt.XXXXXXXX)
+  pwd
+}
+
+vit () {
+  local tmpfile=$(mktemp -t vit.XXXXXXXX)
+  [ "$1" = '-' ] && cat >| $tmpfile
+  sensible-editor $tmpfile </dev/tty >/dev/tty
+  echo $tmpfile
+}
+
+# vim:ft=zsh
diff --git a/.zsh/zshrc/40_tempfuncs b/.zsh/zshrc/40_tempfuncs
deleted file mode 100644 (file)
index dd4eb07..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-# zshrc/40_tempfuncs
-#
-# Helper functions to create temporary files and directories
-#
-# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
-# Released under the terms of the Artistic Licence 2.0
-#
-# Source repository: http://git.madduck.net/v/etc/zsh.git
-#
-
-cdt () {
-  cd $(mktemp -td cdt.XXXXXXXX)
-  pwd
-}
-
-vit () {
-  local tmpfile=$(mktemp -t vit.XXXXXXXX)
-  [ "$1" = '-' ] && cat >| $tmpfile
-  sensible-editor $tmpfile </dev/tty >/dev/tty
-  echo $tmpfile
-}
-
-# vim:ft=zsh