Simplified shortmap loading
parent
8f1ebd024c
commit
693437077f
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue