fix gacp
This commit is contained in:
parent
7e71bf15a4
commit
2bc21cf9cc
12
home.nix
12
home.nix
|
@ -255,6 +255,7 @@ with import ./modules/neovim-config.nix { inherit pkgs lib fromGitHub; };
|
|||
enable = true;
|
||||
shellAbbrs = {
|
||||
e = "edit";
|
||||
nvim = "edit";
|
||||
nxs = "nix search nixpkgs";
|
||||
nxr = "nix run nixpkgs#";
|
||||
nxh = "nix shell nixpkgs#";
|
||||
|
@ -287,9 +288,14 @@ cd $hm_before_commit
|
|||
'';
|
||||
gacp = ''
|
||||
git diff
|
||||
git add .
|
||||
git commit
|
||||
git push
|
||||
set gacp_n n
|
||||
if [ "$(read -P 'continue ? [Y/n] ')" != gacp_n ]
|
||||
git add .
|
||||
git commit
|
||||
git push
|
||||
else
|
||||
echo "cancelled ."
|
||||
end
|
||||
'';
|
||||
|
||||
ng = ''
|
||||
|
|
Loading…
Reference in a new issue