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

oops forgot a few

parent 932cb15d
......@@ -18,8 +18,7 @@ function __autoload_insert
set -l complete_path
for path in $argv
not test -d "$path"; and continue
set -l IFS '/'
echo $path | read -la components
echo $path | read --delimiter '/' -la components
if test "x$components[-1]" = xcompletions
contains -- $path $fish_complete_path
or set complete_path $complete_path $path
......@@ -38,8 +37,7 @@ function __autoload_erase
set -l function_indexes
set -l complete_indexes
for path in $argv
set -l IFS '/'
echo $path | read -la components
echo $path | read --delimiter '/' -la components
test "x$components[-1]" = xcompletions
and set complete_indexes $complete_indexes (contains -i $path $fish_complete_path)
or set function_indexes $function_indexes (contains -i $path $fish_function_path)
......
......@@ -47,8 +47,7 @@ function require
for init in $init_path
emit perf:timer:start $init
set -l IFS '/'
echo $init | read -la components
echo $init | read --delimiter '/' -la components
set path (printf '/%s' $components[1..-2])
......@@ -62,8 +61,7 @@ function require
set dependencies
if test -f $bundle
set -l IFS ' '
while read -l type dependency
while read --delimiter ' ' -l type dependency
test "$type" != package
and continue
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