Commit 798f4e3a authored by Derek Stavis's avatar Derek Stavis

oops forgot a few

parent 932cb15d
...@@ -18,8 +18,7 @@ function __autoload_insert ...@@ -18,8 +18,7 @@ function __autoload_insert
set -l complete_path set -l complete_path
for path in $argv for path in $argv
not test -d "$path"; and continue not test -d "$path"; and continue
set -l IFS '/' echo $path | read --delimiter '/' -la components
echo $path | read -la components
if test "x$components[-1]" = xcompletions if test "x$components[-1]" = xcompletions
contains -- $path $fish_complete_path contains -- $path $fish_complete_path
or set complete_path $complete_path $path or set complete_path $complete_path $path
...@@ -38,8 +37,7 @@ function __autoload_erase ...@@ -38,8 +37,7 @@ function __autoload_erase
set -l function_indexes set -l function_indexes
set -l complete_indexes set -l complete_indexes
for path in $argv for path in $argv
set -l IFS '/' echo $path | read --delimiter '/' -la components
echo $path | read -la components
test "x$components[-1]" = xcompletions test "x$components[-1]" = xcompletions
and set complete_indexes $complete_indexes (contains -i $path $fish_complete_path) and set complete_indexes $complete_indexes (contains -i $path $fish_complete_path)
or set function_indexes $function_indexes (contains -i $path $fish_function_path) or set function_indexes $function_indexes (contains -i $path $fish_function_path)
......
...@@ -47,8 +47,7 @@ function require ...@@ -47,8 +47,7 @@ function require
for init in $init_path for init in $init_path
emit perf:timer:start $init emit perf:timer:start $init
set -l IFS '/' echo $init | read --delimiter '/' -la components
echo $init | read -la components
set path (printf '/%s' $components[1..-2]) set path (printf '/%s' $components[1..-2])
...@@ -62,8 +61,7 @@ function require ...@@ -62,8 +61,7 @@ function require
set dependencies set dependencies
if test -f $bundle if test -f $bundle
set -l IFS ' ' while read --delimiter ' ' -l type dependency
while read -l type dependency
test "$type" != package test "$type" != package
and continue and continue
require "$dependency" require "$dependency"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment