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
84872300
Commit
84872300
authored
Aug 28, 2015
by
Jorge Bucaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor botched source calls with ^/dev/null
parent
87d88f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
init.fish
init.fish
+13
-10
No files found.
init.fish
View file @
84872300
# SYNOPSIS
# Initialize Oh My Fish.
#
# ENV
# OSTYPE Operating system.
# RESET_PATH Original $PATH preseved across Oh My Fish refreshes.
# OMF_PATH Set in ~/.config/fish/config.fish
# OMF_IGNORE List of packages to ignore.
# OMF_CONFIG Same as OMF_PATH. ~/.config/omf by default.
#
# OVERVIEW
# + Autoload Oh My Fish packages, themes and config path
# + For each <pkg> inside {$OMF_PATH,$OMF_CONFIG}
...
...
@@ -16,8 +9,16 @@
# + Emit init_<pkg> event
#
# + Autoload {$OMF_PATH,$OMF_CONFIG}/functions
# + Source {$OMF_PATH,$OMF_CONFIG} → fish-shell/fish-shell/issues/845
# + Source {$OMF_PATH,$OMF_CONFIG}
/events
→ fish-shell/fish-shell/issues/845
# + Source $OMF_CONFIG/init.fish
#
# ENV
# OSTYPE Operating system.
# RESET_PATH Original $PATH preseved across Oh My Fish reloads.
# OMF_PATH Set in ~/.config/fish/config.fish
# OMF_IGNORE List of packages to ignore.
# OMF_CONFIG Same as OMF_PATH. ~/.dotfiles by default.
# OMF_VERSION Oh My Fish! version
if set -q RESET_PATH
set PATH $RESET_PATH
...
...
@@ -27,7 +28,7 @@ end
set -q OSTYPE; or set -g OSTYPE (uname)
# Save the head of function path and autoload
Oh My Fish
core functions
# Save the head of function path and autoload core functions
set -l user_function_path $fish_function_path[1]
set fish_function_path[1] $OMF_PATH/lib
...
...
@@ -51,5 +52,7 @@ autoload $OMF_CONFIG/functions
autoload $user_function_path
for path in {$OMF_PATH,$OMF_CONFIG}/events.fish $OMF_CONFIG/init.fish
source
"$path"
^/dev/null
source
$path
^/dev/null
end
set -g OMF_VERSION "1.0.0"
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