|
@@ -1,7 +1,7 @@
|
|
|
function git_write_keyword --description 'Write git in terminal prompt'
|
|
|
set -l cmd (commandline -po)
|
|
|
set -l cursor (commandline -C)
|
|
|
- set -l keywords 'git commit' 'git add'
|
|
|
+ set -l keywords 'git commit' 'git add' 'git stash'
|
|
|
if test "$cmd[1]" != 'git'
|
|
|
commandline -C 0
|
|
|
commandline -i 'git '
|
|
@@ -13,6 +13,9 @@ function git_write_keyword --description 'Write git in terminal prompt'
|
|
|
commandline -r $keywords[2]
|
|
|
commandline -C (string length $keywords[2])
|
|
|
else if test (commandline -p) = $keywords[2]
|
|
|
+ commandline -r $keywords[3]
|
|
|
+ commandline -C (string length $keywords[3])
|
|
|
+ else if test (commandline -p) = $keywords[3]
|
|
|
commandline -r ''
|
|
|
commandline -C 0
|
|
|
else
|