oh-my-fish/plugins/fish-spec/spec.functions.fish

17 lines
388 B
Fish
Raw Normal View History

# NAME
# spec.functions - echo functions existing in the global scope that match
# the key glob.
# SYNOPSIS
# spec.functions <key>
#
# EXAMPLES
# spec.functions "describe_"
# spec.functions "before_"
#/
function spec.functions -a key
if [ -n "$key" ]
# Skip empty strings to avoid fetching all global functions.
functions -n | grep \^"$key"
end
end