mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-11-22 13:48:16 +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…
Reference in New Issue
Block a user