mirror of
https://github.com/oh-my-fish/oh-my-fish.git
synced 2024-12-03 14:53:41 +08:00
6 lines
136 B
Fish
6 lines
136 B
Fish
|
# True if substring exists in string.
|
||
|
# @params <substring> <string>
|
||
|
function msg.util.str.has
|
||
|
printf $argv[2] | grep -q $argv[1]
|
||
|
end
|