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