The location of a function definition can be in several places:
/usr/share/fish/config.fish (depending where you installed fish, may be
/usr/local/share/fish)
/etc/fish/config.fish
$HOME/.config/fish/config.fish (may be different, depending on
your $XDG_CONFIG_HOME variable
any file one of the above sources
/usr/share/fish/functions/funcname.fish
$HOME/.config/fish/functions/funcname.fish
Or it may have been typed in from the keyboard and does not live in a file.
I'm not sure what the function name resolution algorithm is. Maybe the
`functions` command can be extended with an option to spit out the place
where it was defined.
On Mon, Apr 20, 2015 at 5:22 AM, Michael Stillwell <m...@beebo.org> wrote:
> `type` (and the executable `which`) can be used to show the full path
> name of command:
>
> $ type -P ls
> /bin/ls
>
> Is there some similar for fish functions that will show in which file
> a certain function was defined? (`type funcname` shows the definition
> of a function, but not the source.)
>
>
>
> Michael
>
>
> ------------------------------------------------------------------------------
> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
> Develop your own process in accordance with the BPMN 2 standard
> Learn Process modeling best practices with Bonita BPM through live
> exercises
> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
> event?utm_
> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
--
*Glenn Jackman*
Senior Software Developer
*Pythian - Love your data*
jack...@pythian.com
Tel: +1 613 565 8696 Ext. 1478
Mobile: +1 613 808 4984
www.pythian.com
--
--
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users