Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
798f4e3a
Commit
798f4e3a
authored
Jan 16, 2025
by
Derek Stavis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oops forgot a few
parent
932cb15d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
lib/autoload.fish
lib/autoload.fish
+2
-4
lib/require.fish
lib/require.fish
+2
-4
No files found.
lib/autoload.fish
View file @
798f4e3a
...
...
@@ -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)
...
...
lib/require.fish
View file @
798f4e3a
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment