mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
+ depp (git auf deutsch)
This commit is contained in:
@@ -107,6 +107,7 @@
|
||||
iolanguage = pkgs.callPackage <packages/iolanguage.nix> {};
|
||||
literature-quote = pkgs.callPackage <packages/literature-quote.nix> {};
|
||||
n = pkgs.callPackage <packages/n.nix> {};
|
||||
depp = pkgs.callPackage <packages/depp.nix> {};
|
||||
nix-git = pkgs.callPackage <packages/nix-git.nix> {};
|
||||
odyssey = pkgs.callPackage <packages/odyssey.nix> {};
|
||||
wttr = pkgs.callPackage <packages/wttr.nix> {};
|
||||
@@ -398,6 +399,8 @@
|
||||
genius
|
||||
nix-git
|
||||
n
|
||||
wtf
|
||||
depp
|
||||
] ++ [
|
||||
libcoap
|
||||
traadfri
|
||||
|
||||
29
packages/depp.nix
Normal file
29
packages/depp.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ lib, writeShellScriptBin }:
|
||||
let
|
||||
aliasFlag = name: value: "-c alias.${name}=\"${value}\"";
|
||||
aliases = {
|
||||
eroeffne = "init";
|
||||
machnach = "clone";
|
||||
zieh = "pull";
|
||||
fueghinzu = "add";
|
||||
drueck = "push";
|
||||
pfusch = "push --force";
|
||||
zweig = "branch";
|
||||
verzweige = "branch";
|
||||
uebergib = "commit";
|
||||
erde = "rebase";
|
||||
unterscheide = "diff";
|
||||
vereinige = "merge";
|
||||
bunkere = "stash";
|
||||
markiere = "tag";
|
||||
nimm = "checkout";
|
||||
tagebuch = "log";
|
||||
zustand = "status";
|
||||
};
|
||||
in writeShellScriptBin "depp" ''
|
||||
if [ $# -gt 0 ]; then
|
||||
git ${lib.concatStringsSep " " (lib.attrsets.mapAttrsToList aliasFlag aliases)} $@
|
||||
else
|
||||
printf "${lib.concatStringsSep "\n" (lib.attrsets.mapAttrsToList (n: v: n + " " + v) aliases)}"
|
||||
fi
|
||||
''
|
||||
Reference in New Issue
Block a user