Re: [Fish-users] Completion on a function

2016-11-25 Thread Kurtis Rader
On Fri, Nov 25, 2016 at 7:54 PM, Shiyao Ma wrote: > Is it possible to see what a command is wrapped to? > > Like, 'fish_wrapped_by e' gives env. > I think the only practical solution is to run `complete` (no arguments or flags) and find `--command e` and see if it has a `--wraps` flag. FWIW, I

Re: [Fish-users] Completion on a function

2016-11-25 Thread Shiyao Ma
Is it possible to see what a command is wrapped to? Like, 'fish_wrapped_by e' gives env. -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge

Re: [Fish-users] Completion on a function

2016-11-25 Thread Kurtis Rader
On Fri, Nov 25, 2016 at 7:46 PM, Shiyao Ma wrote: > Thanks. > > Problem solved. > You're welcome. For the record the issue about `functions $funcname` not showing the `--wraps` flag is issue #1625 . -- Kurtis Rader Caretaker of the excepti

Re: [Fish-users] Completion on a function

2016-11-25 Thread Shiyao Ma
Thanks. Problem solved. -- ___ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users

Re: [Fish-users] Completion on a function

2016-11-25 Thread Kurtis Rader
The problem is that `alias` is just a wrapper that creates a `function`. And while `functions e` doesn't show it (a known issue) the `alias` command did `function e --wraps env`. So the solution is don't use `alias`. Just define the function yourself: function e env MY_PWD=$PWD emacsclient -t