mirror of
https://github.com/oh-my-fish/oh-my-fish
synced 2024-11-09 13:10:40 +00:00
2542929eb9
+ msg.util.get.color.fish + msg.util.random.color.fish + msg.util.set.color.fish + msg.util.str.get.fish + msg.util.str.has.fish
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
|