mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Fix broken isatty stdout in fisher ls.
This commit is contained in:
parent
5ecd093d72
commit
446b23d5bb
1 changed files with 4 additions and 13 deletions
13
fisher.fish
13
fisher.fish
|
@ -231,19 +231,10 @@ function fisher
|
||||||
|
|
||||||
case ls
|
case ls
|
||||||
if test "$argv" -ge 0 -o "$argv" = -
|
if test "$argv" -ge 0 -o "$argv" = -
|
||||||
set items (__fisher_list)
|
|
||||||
|
|
||||||
set -l count (count $items)
|
|
||||||
|
|
||||||
if test "$count" -ge 10
|
|
||||||
if isatty stdout
|
if isatty stdout
|
||||||
printf "%s\n" $items | column -c$argv
|
__fisher_list | column -c$argv
|
||||||
else
|
else
|
||||||
printf "%s\n" $items | sed 's|^[@* ]*||'
|
__fisher_list | sed 's|^[@* ]*||'
|
||||||
end
|
|
||||||
|
|
||||||
else if test "$count" -ge 1
|
|
||||||
printf "%s\n" $items
|
|
||||||
end
|
end
|
||||||
|
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue