1
0
Fork 0

Simplified shortmap loading

master
Mike Gerwitz 2014-08-21 21:58:51 -04:00
parent 8f1ebd024c
commit 693437077f
1 changed files with 3 additions and 2 deletions

View File

@ -98,8 +98,9 @@ __git-short_shortalias()
# load shortmaps from cwd (or provided path) and home dir (if available)
__git_short_maps=$(
cat ${1:-./shortmaps} ~/.git-shortmaps 2>/dev/null \
| sed 's/^\([^ ]\+ [^ ]\+\) :/\1 git /'
sed 's/^\([^ ]\+ [^ ]\+\) :/\1 git /' \
"${1:-./shortmaps}" ~/.git-shortmaps \
2>/dev/null
)
oldifs="$IFS"