fork/fish-shell

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

Johannes Altmanningerfish_config theme dump: speed up66f6493fb

master
347 B11 linesraw
1# localization: skip(private)
2function __fish_posix_quote
3    for arg in $argv
4        if set -l bareword (string match -r -- '^[-=\w]+$' $arg)
5            printf "%s " $bareword
6            continue
7        end
8        printf "'%s' " (printf %s $arg | string replace -a -- "'" "'\\''" |
9            string collect --no-trim-newlines)
10    end
11end