Re: [Fish-users] Completion on alias

2013-11-12 Thread Mandeep Sandhu
On Wed, Nov 13, 2013 at 6:36 AM, Leira Hua wrote: > Mandeep Sandhu writes: > >> >> So this is basically looking for aliases created via git itself ('git config >> alias.gco checkout' etc). >> >> To fix your issue, you either need to define an alias with git, or modify the >> __fish_git_using_comm

Re: [Fish-users] Completion on alias

2013-11-12 Thread Mandeep Sandhu
On Tue, Nov 12, 2013 at 8:57 PM, justin wrote: > But with aliases like `gco`, the git completion wouldn't even fire. You're right! 'gco' won't even trigger the git completion as the command doesn't have a corresponding completion file. My bad. -mandeep > > > On Mon, Nov 11, 2013 at 11:56 PM, M

Re: [Fish-users] Completion on alias

2013-11-12 Thread David Adam
On Wed, 13 Nov 2013, Leira Hua wrote: > Mandeep Sandhu writes: > > > > > So this is basically looking for aliases created via git itself ('git config > > alias.gco checkout' etc). > > > > To fix your issue, you either need to define an alias with git, or modify > > the > > __fish_git_using_com

Re: [Fish-users] Completion on alias

2013-11-12 Thread Leira Hua
Mandeep Sandhu writes: > > So this is basically looking for aliases created via git itself ('git config > alias.gco checkout' etc). > > To fix your issue, you either need to define an alias with git, or modify the > __fish_git_using_command function to check if the given command is a shell > al

Re: [Fish-users] Completion on alias

2013-11-12 Thread justin
But with aliases like `gco`, the git completion wouldn't even fire. On Mon, Nov 11, 2013 at 11:56 PM, Mandeep Sandhu < mandeepsandhu@gmail.com> wrote: > I think the reason completion is not working is because of this line > in share/completions/git.fish: > > function __fish_git_using_comman

Re: [Fish-users] Completion on alias

2013-11-11 Thread Mandeep Sandhu
I think the reason completion is not working is because of this line in share/completions/git.fish: function __fish_git_using_command ... # aliased command set -l aliased (command git config --get "alias.$cmd[2]" ^ /dev/null | sed 's/ .*$//') ... So this is basically looking for aliases crea

[Fish-users] Completion on alias

2013-11-11 Thread Leira Hua
I used to use some git aliases in zsh like this one: alias gco='git checkout'. I just switched to fish, and ported the these aliases to fish. Then I found a completion issue, maybe caused by the reason that fish doesn't support "real" alias. Here is my understanding: In zsh, it knows gco is simp