Преглед на файлове

Add `git add .` in the loop

DricomDragon преди 4 години
родител
ревизия
923266bb43
променени са 1 файла, в които са добавени 4 реда и са изтрити 1 реда
  1. 4 1
      Install/Templates/config/fish/functions/git_write_keyword.fish

+ 4 - 1
Install/Templates/config/fish/functions/git_write_keyword.fish

@@ -7,8 +7,11 @@ function git_write_keyword --description 'Write git in terminal prompt'
         commandline -C (math $cursor + 4)
 	else if test (commandline -p) = 'git '
         commandline -r 'git commit -a'
-        commandline -C (math $cursor + 10)
+        commandline -C 13
 	else if test (commandline -p) = 'git commit -a'
+        commandline -r 'git add .'
+        commandline -C 9
+	else if test (commandline -p) = 'git add .'
         commandline -r ''
         commandline -C 0
     else