a gdelmerged function
This commit is contained in:
		
							parent
							
								
									f2ddb560dd
								
							
						
					
					
						commit
						51e202ff47
					
				
					 1 changed files with 60 additions and 52 deletions
				
			
		| 
						 | 
					@ -90,58 +90,66 @@ with lib;
 | 
				
			||||||
    '';
 | 
					    '';
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  programs.zsh.shellAliases = {
 | 
					  programs.zsh = {
 | 
				
			||||||
    # Git
 | 
					    shellAliases = {
 | 
				
			||||||
    "gwip" = "git add . && git commit -am wip";
 | 
					      # Git
 | 
				
			||||||
    "gpr" = "g pull-request";
 | 
					      "gwip" = "git add . && git commit -am wip";
 | 
				
			||||||
    "gcl" = "git clone";
 | 
					      "gpr" = "g pull-request";
 | 
				
			||||||
    "grs" = "gr --soft";
 | 
					      "gcl" = "git clone";
 | 
				
			||||||
    "grhh" = "grh HEAD";
 | 
					      "grs" = "gr --soft";
 | 
				
			||||||
    "grh" = "gr --hard";
 | 
					      "grhh" = "grh HEAD";
 | 
				
			||||||
    "gr" = "git reset";
 | 
					      "grh" = "gr --hard";
 | 
				
			||||||
    "gcb" = "gc -b";
 | 
					      "gr" = "git reset";
 | 
				
			||||||
    "gco" = "gc";
 | 
					      "gcb" = "gc -b";
 | 
				
			||||||
    "gcd" = "gc development";
 | 
					      "gco" = "gc";
 | 
				
			||||||
    "gcm" = "gc master";
 | 
					      "gcd" = "gc development";
 | 
				
			||||||
    "gc" = "git checkout";
 | 
					      "gcm" = "gc master";
 | 
				
			||||||
    "gbg" = "git branch | grep";
 | 
					      "gc" = "git checkout";
 | 
				
			||||||
    "gba" = "git branch -a";
 | 
					      "gbg" = "git branch | grep";
 | 
				
			||||||
    "gb" = "git branch";
 | 
					      "gba" = "git branch -a";
 | 
				
			||||||
    "gcv" = "git commit --verbose";
 | 
					      "gb" = "git branch";
 | 
				
			||||||
    "gci" = "git commit";
 | 
					      "gcv" = "git commit --verbose";
 | 
				
			||||||
    "gm" = "git merge";
 | 
					      "gci" = "git commit";
 | 
				
			||||||
    "gdc" = "gd --cached";
 | 
					      "gm" = "git merge";
 | 
				
			||||||
    "gd" = "git diff";
 | 
					      "gdc" = "gd --cached";
 | 
				
			||||||
    "gsl" = "git stash list";
 | 
					      "gd" = "git diff";
 | 
				
			||||||
    "gss" = "git show stash";
 | 
					      "gsl" = "git stash list";
 | 
				
			||||||
    "gsad" = "git stash drop";
 | 
					      "gss" = "git show stash";
 | 
				
			||||||
    "gsa" = "git stash";
 | 
					      "gsad" = "git stash drop";
 | 
				
			||||||
    "gst" = "gs";
 | 
					      "gsa" = "git stash";
 | 
				
			||||||
    "gs" = "git status";
 | 
					      "gst" = "gs";
 | 
				
			||||||
    "gg" = "gl --decorate --oneline --graph --date-order --all";
 | 
					      "gs" = "git status";
 | 
				
			||||||
    "gl" = "git log";
 | 
					      "gg" = "gl --decorate --oneline --graph --date-order --all";
 | 
				
			||||||
    "gf" = "git fetch";
 | 
					      "gl" = "git log";
 | 
				
			||||||
    "gur" = "gu --rebase";
 | 
					      "gf" = "git fetch";
 | 
				
			||||||
    "gu" = "git pull";
 | 
					      "gur" = "gu --rebase";
 | 
				
			||||||
    "gpf" = "gp -f";
 | 
					      "gu" = "git pull";
 | 
				
			||||||
    "gpa" = "gp --all";
 | 
					      "gpf" = "gp -f";
 | 
				
			||||||
    "gpu" = "git push -u origin \"$(git symbolic-ref --short HEAD)\"";
 | 
					      "gpa" = "gp --all";
 | 
				
			||||||
    "gp" = "git push";
 | 
					      "gpu" = "git push -u origin \"$(git symbolic-ref --short HEAD)\"";
 | 
				
			||||||
    "ganw" = "git diff -w --no-color | git apply --cached --ignore-whitespace";
 | 
					      "gp" = "git push";
 | 
				
			||||||
    "ga" = "git add";
 | 
					      "ganw" = "git diff -w --no-color | git apply --cached --ignore-whitespace";
 | 
				
			||||||
    "gnp" = "git --no-pager";
 | 
					      "ga" = "git add";
 | 
				
			||||||
    "g" = "git";
 | 
					      "gnp" = "git --no-pager";
 | 
				
			||||||
    "git" = "hub";
 | 
					      "g" = "git";
 | 
				
			||||||
    "grim" = "git fetch && git rebase -i origin/master";
 | 
					      "git" = "hub";
 | 
				
			||||||
    "grc" = "git rebase --continue";
 | 
					      "grim" = "git fetch && git rebase -i origin/master";
 | 
				
			||||||
    "gcan" = "git commit --amend --no-edit";
 | 
					      "grc" = "git rebase --continue";
 | 
				
			||||||
    "grl" = "git reflog";
 | 
					      "gcan" = "git commit --amend --no-edit";
 | 
				
			||||||
 | 
					      "grl" = "git reflog";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Haskell
 | 
					      # Haskell
 | 
				
			||||||
    "cnb" = "cabal new-build";
 | 
					      "cnb" = "cabal new-build";
 | 
				
			||||||
    "cob" = "cabal old-build";
 | 
					      "cob" = "cabal old-build";
 | 
				
			||||||
    "cnr" = "cabal new-run";
 | 
					      "cnr" = "cabal new-run";
 | 
				
			||||||
    "cor" = "cabal old-run";
 | 
					      "cor" = "cabal old-run";
 | 
				
			||||||
    "ho" = "hoogle";
 | 
					      "ho" = "hoogle";
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    functions = {
 | 
				
			||||||
 | 
					      gdelmerged = ''
 | 
				
			||||||
 | 
					      git branch --merged | egrep -v 'master' | tr -d '+ ' | xargs git branch -d
 | 
				
			||||||
 | 
					      '';
 | 
				
			||||||
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue