fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
352 B12 linesraw
1# localization: skip(private)
2function __fish_mktemp_relative
3    # OSX mktemp is rather restricted - no suffix, no way to automatically use TMPDIR
4    if not set -q TMPDIR[1]
5        set -f TMPDIR /tmp
6    end
7    argparse -u -- $argv || return
8    if not set -q argv[1]
9        set argv fish
10    end
11    mktemp $argv_opts -- $TMPDIR/$argv.XXXXXX
12end