fork/fish-shell

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

Johannes AltmanningerMark private functions that don't need localizationa53db7256

master
321 B10 linesraw
1# localization: skip(private)
2# Retrieves the first non-switch argument from the command line buffer
3function __fish_first_token
4    set -l tokens (commandline -cx)
5    set -e tokens[1]
6    set -l tokens (string replace -r --filter '^([^-].*)' '$1' -- $tokens)
7    if set -q tokens[1]
8        echo $tokens[1]
9    end
10end