mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 00:44:53 +08:00
__fish_print_help: handle [ and :
This commit is contained in:
parent
c2fe319af0
commit
1f8c9a5d42
@ -1,6 +1,11 @@
|
||||
function __fish_print_help --description "Print help message for the specified fish function or builtin" --argument item error_message
|
||||
if test "$item" = '.'
|
||||
set item source
|
||||
switch $item
|
||||
case .
|
||||
set item source
|
||||
case :
|
||||
set item true
|
||||
case '['
|
||||
set item test
|
||||
end
|
||||
|
||||
# Do nothing if the file does not exist
|
||||
|
Loading…
x
Reference in New Issue
Block a user