mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 07:16:23 -04:00
Fixed git add for fish shell
This commit is contained in:
parent
27d4a78756
commit
656087369f
|
|
@ -95,9 +95,9 @@ function forgit::add -d "git add selector"
|
|||
set extract_file "
|
||||
sed 's/^[[:space:]]*//' | # remove leading whitespace
|
||||
cut -d ' ' -f 2- | # cut the line after the M or ??, this leaves just the filename
|
||||
sed 's/.* -> //' | # for rename case
|
||||
sed -e 's/^\\\"//' -e 's/\\\"\$//' # removes surrounding quotes
|
||||
sed 's/.* -> //' # for rename case
|
||||
"
|
||||
|
||||
set preview "
|
||||
set file (echo {} | $extract_file)
|
||||
# exit
|
||||
|
|
|
|||
Loading…
Reference in a new issue