mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2025-03-27 18:25:12 +08:00
Do not source events.fish
We don't use it for anything.
This commit is contained in:
parent
55aa2de73c
commit
8aa60c55ae
10
init.fish
10
init.fish
@ -9,15 +9,14 @@
|
|||||||
# + Emit init_<pkg> event
|
# + Emit init_<pkg> event
|
||||||
#
|
#
|
||||||
# + Autoload {$OMF_PATH,$OMF_CONFIG}/functions
|
# + Autoload {$OMF_PATH,$OMF_CONFIG}/functions
|
||||||
# + Source {$OMF_PATH,$OMF_CONFIG}/events
|
|
||||||
# + Source $OMF_CONFIG/init.fish
|
# + Source $OMF_CONFIG/init.fish
|
||||||
#
|
#
|
||||||
# ENV
|
# ENV
|
||||||
# OSTYPE Operating system.
|
# OSTYPE Operating system.
|
||||||
# RESET_PATH Original $PATH preseved across Oh My Fish reloads.
|
# RESET_PATH Original $PATH preseved across Oh My Fish reloads.
|
||||||
# OMF_PATH Set in ~/.config/fish/config.fish
|
# OMF_PATH ~/.local/share/omf by default.
|
||||||
# OMF_IGNORE List of packages to ignore.
|
# OMF_IGNORE List of packages to ignore.
|
||||||
# OMF_CONFIG Same as OMF_PATH. ~/.dotfiles by default.
|
# OMF_CONFIG ~/.config/omf by default.
|
||||||
# OMF_VERSION Oh My Fish! version
|
# OMF_VERSION Oh My Fish! version
|
||||||
|
|
||||||
if set -q RESET_PATH
|
if set -q RESET_PATH
|
||||||
@ -51,8 +50,7 @@ end
|
|||||||
autoload $OMF_CONFIG/functions
|
autoload $OMF_CONFIG/functions
|
||||||
autoload $user_function_path
|
autoload $user_function_path
|
||||||
|
|
||||||
for path in {$OMF_PATH,$OMF_CONFIG}/events.fish $OMF_CONFIG/init.fish
|
# Source custom init.fish file
|
||||||
source $path ^/dev/null
|
source $OMF_CONFIG/init.fish ^/dev/null
|
||||||
end
|
|
||||||
|
|
||||||
set -g OMF_VERSION "1.0.0"
|
set -g OMF_VERSION "1.0.0"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user