fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes Altmanningerfunctions/{__fish_print_help,man}: extract function for resolving builtin docs674e93d12

master
514 B21 linesraw
1# localization: skip(private)
2# Some of these don't have their own page,
3# and adding one would be awkward given that the filename
4# isn't guaranteed to be allowed.
5# So we override them with the good name.
6function __fish_canonicalize_builtin -a cmd
7    switch $cmd
8        case !
9            echo not
10        case .
11            echo source
12        case :
13            echo true
14        case '['
15            echo test
16        case '{'
17            echo begin
18        case '*'
19            printf %s $cmd
20    end
21end