mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -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
|
||||
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
|
||||
__fish_delta_diff $tmpfile
|
||||
command rm $tmpfile
|
||||
|
||||
Reference in New Issue
Block a user