Fix tide configure on install bug

This commit is contained in:
Ilan Cosman 2021-01-27 09:34:23 -08:00
parent 383d6842ec
commit bc2bddf2dc

View File

@ -1,19 +1,19 @@
# Create an empty fake function for each item
for func in _fake(functions --all | string match --entire _tide_item)
function $func
end
end
for file in $_tide_root/functions/tide/configure/{choices, functions, prompt_items}/**.fish
source "$file"
end
function _tide_sub_configure
if test $COLUMNS -lt 55 -o $LINES -lt 21
printf '%s\n' 'Terminal size too small; must be at least 55 x 21'
return 1
end
# Create an empty fake function for each item
for func in _fake(functions --all | string match --entire _tide_item)
function $func
end
end
for file in $_tide_root/functions/tide/configure/{choices, functions, prompt_items}/**.fish
source "$file"
end
set -g fake_columns $COLUMNS
test $fake_columns -gt 90 && set fake_columns 90
set -g fake_lines $LINES