mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-04-23 02:41:14 -03:00
13 lines
352 B
Fish
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
|