mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Change setup to avoid invalid directories and warnings, also revert directory checking for fish_*_path, it makes sense to add non-empty directories to these
darcs-hash:20060421150558-ac50b-90aff08f81b3d280badba4cc14fb6a0897c39f9e.gz
This commit is contained in:
parent
de2405b35a
commit
508de57459
2 changed files with 3 additions and 5 deletions
|
@ -274,8 +274,6 @@ static int is_path_variable( const wchar_t *env )
|
|||
return contains_str( env,
|
||||
L"PATH",
|
||||
L"CDPATH",
|
||||
L"fish_function_path",
|
||||
L"fish_completion_path",
|
||||
(void *)0 );
|
||||
}
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ if test "$USER" = root
|
|||
end
|
||||
|
||||
for i in $path_list
|
||||
if not expr "$PATH" : .\*$i.\* >/dev/null
|
||||
if not expr "$PATH" : "$i/*" >/dev/null
|
||||
if test -d $i
|
||||
set PATH $PATH $i
|
||||
end
|
||||
|
@ -43,8 +43,8 @@ end
|
|||
# Convenience functions
|
||||
#
|
||||
# The naming heuristic is that __fish_complete_* prints completions
|
||||
# and descriptions, while __fish_print_* only prints the completion,
|
||||
# without the description
|
||||
# and descriptions, while __fish_print_* only prints the completions
|
||||
# and no descriptions
|
||||
#
|
||||
|
||||
function __fish_complete_users -d "Print a list of local users, with the real user name as a description"
|
||||
|
|
Loading…
Reference in a new issue