summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2025-12-04 11:37:28 +0200
committerPaul Buetow <paul@buetow.org>2025-12-04 11:37:28 +0200
commit2eb2ff91cd2f0d5ff86bbe9d80101955415b7562 (patch)
treef1432c9480b6093c5a6235b1e35f037214cbf9c1
parent8de8d35887ccf09908003131e6a69aa748d216b3 (diff)
Update
-rw-r--r--dotfiles/fish/conf.d/tmputils.fish9
1 files changed, 9 insertions, 0 deletions
diff --git a/dotfiles/fish/conf.d/tmputils.fish b/dotfiles/fish/conf.d/tmputils.fish
index 20a122a..87d8bde 100644
--- a/dotfiles/fish/conf.d/tmputils.fish
+++ b/dotfiles/fish/conf.d/tmputils.fish
@@ -1,6 +1,15 @@
set -gx TMPUTILS_DIR ~/data/tmp
set -gx TMPUTILS_TMPFILE ~/.tmpfile
+function tmpdir
+ set -l name $argv[1]
+ set -l dir "$TMPUTILS_DIR/$name"
+ if not test -d $dir
+ mkdir -p $dir
+ end
+ cd $dir
+end
+
function tmpls
if not test -d $TMPUTILS_DIR
return