10 lines
172 B
Fish
10 lines
172 B
Fish
|
#!/usr/bin/env fish
|
||
|
|
||
|
function starts_with
|
||
|
set -l first_char (string sub -l 1 "$argv[2..]")
|
||
|
if test $first_char = $argv[1]
|
||
|
return 0
|
||
|
end
|
||
|
return 1
|
||
|
end
|