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 = {
 | 
			
		||||
    # Git
 | 
			
		||||
    "gwip" = "git add . && git commit -am wip";
 | 
			
		||||
    "gpr" = "g pull-request";
 | 
			
		||||
    "gcl" = "git clone";
 | 
			
		||||
    "grs" = "gr --soft";
 | 
			
		||||
    "grhh" = "grh HEAD";
 | 
			
		||||
    "grh" = "gr --hard";
 | 
			
		||||
    "gr" = "git reset";
 | 
			
		||||
    "gcb" = "gc -b";
 | 
			
		||||
    "gco" = "gc";
 | 
			
		||||
    "gcd" = "gc development";
 | 
			
		||||
    "gcm" = "gc master";
 | 
			
		||||
    "gc" = "git checkout";
 | 
			
		||||
    "gbg" = "git branch | grep";
 | 
			
		||||
    "gba" = "git branch -a";
 | 
			
		||||
    "gb" = "git branch";
 | 
			
		||||
    "gcv" = "git commit --verbose";
 | 
			
		||||
    "gci" = "git commit";
 | 
			
		||||
    "gm" = "git merge";
 | 
			
		||||
    "gdc" = "gd --cached";
 | 
			
		||||
    "gd" = "git diff";
 | 
			
		||||
    "gsl" = "git stash list";
 | 
			
		||||
    "gss" = "git show stash";
 | 
			
		||||
    "gsad" = "git stash drop";
 | 
			
		||||
    "gsa" = "git stash";
 | 
			
		||||
    "gst" = "gs";
 | 
			
		||||
    "gs" = "git status";
 | 
			
		||||
    "gg" = "gl --decorate --oneline --graph --date-order --all";
 | 
			
		||||
    "gl" = "git log";
 | 
			
		||||
    "gf" = "git fetch";
 | 
			
		||||
    "gur" = "gu --rebase";
 | 
			
		||||
    "gu" = "git pull";
 | 
			
		||||
    "gpf" = "gp -f";
 | 
			
		||||
    "gpa" = "gp --all";
 | 
			
		||||
    "gpu" = "git push -u origin \"$(git symbolic-ref --short HEAD)\"";
 | 
			
		||||
    "gp" = "git push";
 | 
			
		||||
    "ganw" = "git diff -w --no-color | git apply --cached --ignore-whitespace";
 | 
			
		||||
    "ga" = "git add";
 | 
			
		||||
    "gnp" = "git --no-pager";
 | 
			
		||||
    "g" = "git";
 | 
			
		||||
    "git" = "hub";
 | 
			
		||||
    "grim" = "git fetch && git rebase -i origin/master";
 | 
			
		||||
    "grc" = "git rebase --continue";
 | 
			
		||||
    "gcan" = "git commit --amend --no-edit";
 | 
			
		||||
    "grl" = "git reflog";
 | 
			
		||||
  programs.zsh = {
 | 
			
		||||
    shellAliases = {
 | 
			
		||||
      # Git
 | 
			
		||||
      "gwip" = "git add . && git commit -am wip";
 | 
			
		||||
      "gpr" = "g pull-request";
 | 
			
		||||
      "gcl" = "git clone";
 | 
			
		||||
      "grs" = "gr --soft";
 | 
			
		||||
      "grhh" = "grh HEAD";
 | 
			
		||||
      "grh" = "gr --hard";
 | 
			
		||||
      "gr" = "git reset";
 | 
			
		||||
      "gcb" = "gc -b";
 | 
			
		||||
      "gco" = "gc";
 | 
			
		||||
      "gcd" = "gc development";
 | 
			
		||||
      "gcm" = "gc master";
 | 
			
		||||
      "gc" = "git checkout";
 | 
			
		||||
      "gbg" = "git branch | grep";
 | 
			
		||||
      "gba" = "git branch -a";
 | 
			
		||||
      "gb" = "git branch";
 | 
			
		||||
      "gcv" = "git commit --verbose";
 | 
			
		||||
      "gci" = "git commit";
 | 
			
		||||
      "gm" = "git merge";
 | 
			
		||||
      "gdc" = "gd --cached";
 | 
			
		||||
      "gd" = "git diff";
 | 
			
		||||
      "gsl" = "git stash list";
 | 
			
		||||
      "gss" = "git show stash";
 | 
			
		||||
      "gsad" = "git stash drop";
 | 
			
		||||
      "gsa" = "git stash";
 | 
			
		||||
      "gst" = "gs";
 | 
			
		||||
      "gs" = "git status";
 | 
			
		||||
      "gg" = "gl --decorate --oneline --graph --date-order --all";
 | 
			
		||||
      "gl" = "git log";
 | 
			
		||||
      "gf" = "git fetch";
 | 
			
		||||
      "gur" = "gu --rebase";
 | 
			
		||||
      "gu" = "git pull";
 | 
			
		||||
      "gpf" = "gp -f";
 | 
			
		||||
      "gpa" = "gp --all";
 | 
			
		||||
      "gpu" = "git push -u origin \"$(git symbolic-ref --short HEAD)\"";
 | 
			
		||||
      "gp" = "git push";
 | 
			
		||||
      "ganw" = "git diff -w --no-color | git apply --cached --ignore-whitespace";
 | 
			
		||||
      "ga" = "git add";
 | 
			
		||||
      "gnp" = "git --no-pager";
 | 
			
		||||
      "g" = "git";
 | 
			
		||||
      "git" = "hub";
 | 
			
		||||
      "grim" = "git fetch && git rebase -i origin/master";
 | 
			
		||||
      "grc" = "git rebase --continue";
 | 
			
		||||
      "gcan" = "git commit --amend --no-edit";
 | 
			
		||||
      "grl" = "git reflog";
 | 
			
		||||
 | 
			
		||||
    # Haskell
 | 
			
		||||
    "cnb" = "cabal new-build";
 | 
			
		||||
    "cob" = "cabal old-build";
 | 
			
		||||
    "cnr" = "cabal new-run";
 | 
			
		||||
    "cor" = "cabal old-run";
 | 
			
		||||
    "ho" = "hoogle";
 | 
			
		||||
      # Haskell
 | 
			
		||||
      "cnb" = "cabal new-build";
 | 
			
		||||
      "cob" = "cabal old-build";
 | 
			
		||||
      "cnr" = "cabal new-run";
 | 
			
		||||
      "cor" = "cabal old-run";
 | 
			
		||||
      "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