diff options
author | Fabian Homborg <FHomborg@gmail.com> | 2016-05-11 14:54:17 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-05-11 15:03:05 +0200 |
commit | d2e79cf6f6589ae2cd8fb6ad1ac294f4486b0a2c (patch) | |
tree | 28f62480b832b5fba79ded1042b2438fd7933089 /share/completions | |
parent | a38d5504acfd5126af7ab93fe660127428da7492 (diff) |
git completion: More stringification
Diffstat (limited to 'share/completions')
-rw-r--r-- | share/completions/git.fish | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/share/completions/git.fish b/share/completions/git.fish index 19da0f98..ec604ed4 100644 --- a/share/completions/git.fish +++ b/share/completions/git.fish @@ -133,18 +133,13 @@ function __fish_git_stash_not_using_subcommand end function __fish_git_complete_stashes - set -l IFS ':' - command git stash list --format=%gd:%gs ^/dev/null | while read -l name desc - echo $name\t$desc - end + command git stash list --format=%gd:%gs ^/dev/null | string replace ":" \t end function __fish_git_aliases - set -l IFS \n command git config -z --get-regexp '^alias\.' ^/dev/null | while read -lz key value begin - set -l IFS "." - echo -n $key | read -l _ name + set -l name (string replace -r '^.*\.' '' -- $key) printf "%s\t%s\n" $name "Alias for $value" end end |