fish: consistency is key and other style changes
I like my empty sets with spaces between them.
This commit is contained in:
parent
89239d554d
commit
5ca224f75b
|
@ -65,7 +65,10 @@ in
|
|||
shellAbbrs = mkOption {
|
||||
type = with types; attrsOf str;
|
||||
default = { };
|
||||
example = { l = "less"; gco = "git checkout"; };
|
||||
example = {
|
||||
l = "less";
|
||||
gco = "git checkout";
|
||||
};
|
||||
description = ''
|
||||
An attribute set that maps aliases (the top level attribute names
|
||||
in this option) to abbreviations. Abbreviations are expanded with
|
||||
|
@ -299,25 +302,25 @@ in
|
|||
set -l plugin_dir ${plugin.src}
|
||||
|
||||
# Set paths to import plugin components
|
||||
if test -d $plugin_dir"/functions"
|
||||
set fish_function_path $fish_function_path[1] $plugin_dir"/functions" $fish_function_path[2..-1]
|
||||
if test -d $plugin_dir/functions
|
||||
set fish_function_path $fish_function_path[1] $plugin_dir/functions $fish_function_path[2..-1]
|
||||
end
|
||||
|
||||
if test -d $plugin_dir"/completions"
|
||||
set fish_complete_path $fish_function_path[1] $plugin_dir"/completions" $fish_complete_path[2..-1]
|
||||
if test -d $plugin_dir/completions
|
||||
set fish_complete_path $fish_function_path[1] $plugin_dir/completions $fish_complete_path[2..-1]
|
||||
end
|
||||
|
||||
# Source initialization code if it exists.
|
||||
if test -d $plugin_dir"/conf.d"
|
||||
if test -d $plugin_dir/conf.d
|
||||
source $plugin_dir/conf.d/*.fish
|
||||
end
|
||||
|
||||
if test -f $plugin_dir"/key_bindings.fish"
|
||||
source $plugin_dir"/key_bindings.fish"
|
||||
if test -f $plugin_dir/key_bindings.fish
|
||||
source $plugin_dir/key_bindings.fish
|
||||
end
|
||||
|
||||
if test -f $plugin_dir"/init.fish"
|
||||
source $plugin_dir"/init.fish"
|
||||
if test -f $plugin_dir/init.fish
|
||||
source $plugin_dir/init.fish
|
||||
end
|
||||
'';
|
||||
}) cfg.plugins));
|
||||
|
|
|
@ -11,25 +11,25 @@ let
|
|||
set -l plugin_dir ${fooPluginSrc}
|
||||
|
||||
# Set paths to import plugin components
|
||||
if test -d $plugin_dir"/functions"
|
||||
set fish_function_path $fish_function_path[1] $plugin_dir"/functions" $fish_function_path[2..-1]
|
||||
if test -d $plugin_dir/functions
|
||||
set fish_function_path $fish_function_path[1] $plugin_dir/functions $fish_function_path[2..-1]
|
||||
end
|
||||
|
||||
if test -d $plugin_dir"/completions"
|
||||
set fish_complete_path $fish_function_path[1] $plugin_dir"/completions" $fish_complete_path[2..-1]
|
||||
if test -d $plugin_dir/completions
|
||||
set fish_complete_path $fish_function_path[1] $plugin_dir/completions $fish_complete_path[2..-1]
|
||||
end
|
||||
|
||||
# Source initialization code if it exists.
|
||||
if test -d $plugin_dir"/conf.d"
|
||||
if test -d $plugin_dir/conf.d
|
||||
source $plugin_dir/conf.d/*.fish
|
||||
end
|
||||
|
||||
if test -f $plugin_dir"/key_bindings.fish"
|
||||
source $plugin_dir"/key_bindings.fish"
|
||||
if test -f $plugin_dir/key_bindings.fish
|
||||
source $plugin_dir/key_bindings.fish
|
||||
end
|
||||
|
||||
if test -f $plugin_dir"/init.fish"
|
||||
source $plugin_dir"/init.fish"
|
||||
if test -f $plugin_dir/init.fish
|
||||
source $plugin_dir/init.fish
|
||||
end
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue