Files
fish-shell/share/functions/__fish_mktemp_relative.fish
Johannes Altmanninger 2c0e912fe1 Mark private functions that don't need localization
See the next commit.

Part of #11833

(cherry picked from commit a53db72564)
2025-09-30 11:52:41 +02:00

13 lines
352 B
Fish

# localization: skip(private)
function __fish_mktemp_relative
# OSX mktemp is rather restricted - no suffix, no way to automatically use TMPDIR
if not set -q TMPDIR[1]
set -f TMPDIR /tmp
end
argparse -u -- $argv || return
if not set -q argv[1]
set argv fish
end
mktemp $argv_opts -- $TMPDIR/$argv.XXXXXX
end