From f549ada16c6d6165908c3e98f52bf64561808838 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Wed, 20 Aug 2014 18:43:17 -0700 Subject: [PATCH] Set up fish_{function,complete}_path properly In the base config.fish, fish_function_path and fish_complete_path have $__fish_datadir/{functions,completions} added to them if not already present. For some reason they were replacing the final path component instead of being added on to the end. --- share/config.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/config.fish b/share/config.fish index 455d40bb2..94046a6c5 100644 --- a/share/config.fish +++ b/share/config.fish @@ -47,7 +47,7 @@ if not set -q fish_function_path end if not contains $__fish_datadir/functions $fish_function_path - set fish_function_path[-1] $__fish_datadir/functions + set fish_function_path $fish_function_path $__fish_datadir/functions end if not set -q fish_complete_path @@ -55,7 +55,7 @@ if not set -q fish_complete_path end if not contains $__fish_datadir/completions $fish_complete_path - set fish_complete_path[-1] $__fish_datadir/completions + set fish_complete_path $fish_complete_path $__fish_datadir/completions end #