2012-07-30 02:42:37 +08:00
|
|
|
# Set fish_custom to the path where your custom config files
|
2015-01-07 13:00:00 +08:00
|
|
|
# and plugins exist, or use the default custom instead.
|
2012-07-30 02:42:37 +08:00
|
|
|
if not set -q fish_custom
|
2015-01-07 13:00:00 +08:00
|
|
|
set -g fish_custom $fish_path/custom
|
2012-07-25 12:07:27 +08:00
|
|
|
end
|
|
|
|
|
2015-01-08 01:21:51 +08:00
|
|
|
# Add functions defined in oh-my-fish/functions to the path.
|
2013-11-01 04:33:26 +08:00
|
|
|
if not contains $fish_path/functions/ $fish_function_path
|
2013-11-20 16:06:31 +08:00
|
|
|
set fish_function_path $fish_path/functions/ $fish_function_path
|
2013-11-01 04:33:26 +08:00
|
|
|
end
|
2012-07-24 11:59:50 +08:00
|
|
|
|
2015-05-26 21:28:06 +08:00
|
|
|
if set -q fish_plugins
|
|
|
|
set_color red
|
|
|
|
echo '$fish_plugins usage has been deprecated. Please see https://asciinema.org/a/20802.'
|
|
|
|
set_color normal
|
|
|
|
end
|
|
|
|
|
|
|
|
if set -q fish_theme
|
|
|
|
set_color red
|
|
|
|
echo '$fish_theme usage has been deprecated. Please see https://asciinema.org/a/20802.'
|
|
|
|
set_color normal
|
|
|
|
end
|
|
|
|
|
2015-01-08 01:21:51 +08:00
|
|
|
# Add imported plugins, completions and themes. Customize imported
|
|
|
|
# commands via the $fish_path/custom directory, for example create
|
|
|
|
# a directory under $fish_path/custom/themes with the same name as
|
|
|
|
# the theme and override any functions/variables there. Rinse and
|
|
|
|
# repeat for plugins.
|
2015-01-08 02:04:54 +08:00
|
|
|
import plugins/$fish_plugins themes/$fish_theme
|
2012-07-25 08:16:18 +08:00
|
|
|
|
2015-05-31 19:31:55 +08:00
|
|
|
# Always load oh-my-fish plugin
|
|
|
|
import plugins/omf
|
|
|
|
|
2015-01-08 01:21:51 +08:00
|
|
|
# Source all files inside custom directory.
|
|
|
|
for load in $fish_custom/*.load
|
|
|
|
. $load
|
2012-07-25 12:07:27 +08:00
|
|
|
end
|
|
|
|
|
2015-01-14 02:35:42 +08:00
|
|
|
# Make sure to exit with $status of 1 when reloading the framework.
|
|
|
|
or true
|