mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-02-21 09:38:54 +08:00
tmpdir is local
This commit is contained in:
parent
f5e7eacbe0
commit
266512f577
@ -13,11 +13,11 @@ function backup_function
|
||||
end
|
||||
|
||||
function _create_tmpname
|
||||
set -l TMPDIR /tmp
|
||||
set -l tmpdir /tmp
|
||||
|
||||
set -g tmpname (printf "$TMPDIR/fish_funced_%d_%d.fish" %self (random))
|
||||
set -g tmpname (printf "$tmpdir/fish_funced_%d_%d.fish" %self (random))
|
||||
while test -f $tmpname
|
||||
set -g tmpname (printf "$TMPDIR/fish_funced_%d_%d.fish" %self (random))
|
||||
set -g tmpname (printf "$tmpdir/fish_funced_%d_%d.fish" %self (random))
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user