mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-08 10:51:15 -03:00
fish_delta: acknowledge workaround for no-stdin-in-cmdsub
This commit is contained in:
@@ -132,7 +132,9 @@ function fish_delta
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
function __fish_delta_diff_maybe_file -a maybe_default_file
|
function __fish_delta_diff_maybe_file -a maybe_default_file
|
||||||
set -l tmpfile (mktemp)
|
# TODO Use "set -l foo (cat)" instead of the temp file.
|
||||||
|
# https://github.com/fish-shell/fish-shell/issues/206
|
||||||
|
set -l tmpfile (__fish_mktemp_relative fish-delta)
|
||||||
cat $maybe_default_file >$tmpfile
|
cat $maybe_default_file >$tmpfile
|
||||||
__fish_delta_diff $tmpfile
|
__fish_delta_diff $tmpfile
|
||||||
command rm $tmpfile
|
command rm $tmpfile
|
||||||
|
|||||||
Reference in New Issue
Block a user