madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

add aliases
authormartin f. krafft <madduck@madduck.net>
Tue, 18 Apr 2017 09:34:40 +0000 (11:34 +0200)
committermartin f. krafft <madduck@madduck.net>
Wed, 17 May 2017 12:35:04 +0000 (14:35 +0200)
.zsh/aliases/bofh [new file with mode: 0644]
.zsh/aliases/chp [new file with mode: 0644]
.zsh/aliases/debbug [new file with mode: 0644]
.zsh/aliases/debbugm [new file with mode: 0644]
.zsh/aliases/dpkg-buildpackage [new file with mode: 0644]
.zsh/aliases/genpw [new file with mode: 0644]
.zsh/aliases/getpw [new file with mode: 0644]
.zsh/aliases/mcd [new file with mode: 0644]

diff --git a/.zsh/aliases/bofh b/.zsh/aliases/bofh
new file mode 100644 (file)
index 0000000..b5325e2
--- /dev/null
@@ -0,0 +1 @@
+fortune bofh-excuses
diff --git a/.zsh/aliases/chp b/.zsh/aliases/chp
new file mode 100644 (file)
index 0000000..171eb7e
--- /dev/null
@@ -0,0 +1 @@
+() { local p="$1" o="$2" g="$3"; shift 3; chmod "$p" "$@"; chown "$o":"$g" "$@"; }
diff --git a/.zsh/aliases/debbug b/.zsh/aliases/debbug
new file mode 100644 (file)
index 0000000..882dc6b
--- /dev/null
@@ -0,0 +1 @@
+BROWSER=www-browser bts show
diff --git a/.zsh/aliases/debbugm b/.zsh/aliases/debbugm
new file mode 100644 (file)
index 0000000..4f5ccc2
--- /dev/null
@@ -0,0 +1 @@
+bts show --mbox
diff --git a/.zsh/aliases/dpkg-buildpackage b/.zsh/aliases/dpkg-buildpackage
new file mode 100644 (file)
index 0000000..0aab914
--- /dev/null
@@ -0,0 +1 @@
+$0 -k$DEBKEYID -rfakeroot
diff --git a/.zsh/aliases/genpw b/.zsh/aliases/genpw
new file mode 100644 (file)
index 0000000..bf2fba2
--- /dev/null
@@ -0,0 +1 @@
+() { diceware -s ${2:-0} | pass insert -e "$1"; pass -c "$1"; }
diff --git a/.zsh/aliases/getpw b/.zsh/aliases/getpw
new file mode 100644 (file)
index 0000000..c2dc8a8
--- /dev/null
@@ -0,0 +1 @@
+pass -c
diff --git a/.zsh/aliases/mcd b/.zsh/aliases/mcd
new file mode 100644 (file)
index 0000000..f1b6807
--- /dev/null
@@ -0,0 +1 @@
+() { mkdir -vp "$1" && cd "$1"; }