When I run abbr import-git-aliases, I get output like this.
Did not import the Git alias `wkadd` because its expansion is a function
Added the global user abbreviation `g$' '$' 'git`
Added the regular user abbreviation `$' '$' 'git`
Added the global user abbreviation `g$' '$' 'echo`
Added the regular user abbreviation `$' '$' 'echo`
Added the global user abbreviation `g$' '$' '\}\;`
Added the regular user abbreviation `$' '$' '\}\;`
The first line of course makes sense, but the rest don't.
import-git-aliases should probably be made more aware of multiline aliases so that it knows to skip the whole alias definition if it finds a function alias, and not just the first line of it.
I have aliases that look like this in my
.gitconfig
.When I run
abbr import-git-aliases
, I get output like this.The first line of course makes sense, but the rest don't.
import-git-aliases
should probably be made more aware of multiline aliases so that it knows to skip the whole alias definition if it finds a function alias, and not just the first line of it.