From: martin f. krafft Date: Tue, 18 Apr 2017 09:34:40 +0000 (+0200) Subject: add aliases X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/5365f4cffcb93705d61c9f8df48ed710c93b6049?hp=33230b65afa1076218abff057d0bbcc7486af0a8 add aliases --- diff --git a/.zsh/aliases/bofh b/.zsh/aliases/bofh new file mode 100644 index 0000000..b5325e2 --- /dev/null +++ b/.zsh/aliases/bofh @@ -0,0 +1 @@ +fortune bofh-excuses diff --git a/.zsh/aliases/chp b/.zsh/aliases/chp new file mode 100644 index 0000000..171eb7e --- /dev/null +++ b/.zsh/aliases/chp @@ -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 index 0000000..882dc6b --- /dev/null +++ b/.zsh/aliases/debbug @@ -0,0 +1 @@ +BROWSER=www-browser bts show diff --git a/.zsh/aliases/debbugm b/.zsh/aliases/debbugm new file mode 100644 index 0000000..4f5ccc2 --- /dev/null +++ b/.zsh/aliases/debbugm @@ -0,0 +1 @@ +bts show --mbox diff --git a/.zsh/aliases/dpkg-buildpackage b/.zsh/aliases/dpkg-buildpackage new file mode 100644 index 0000000..0aab914 --- /dev/null +++ b/.zsh/aliases/dpkg-buildpackage @@ -0,0 +1 @@ +$0 -k$DEBKEYID -rfakeroot diff --git a/.zsh/aliases/genpw b/.zsh/aliases/genpw new file mode 100644 index 0000000..bf2fba2 --- /dev/null +++ b/.zsh/aliases/genpw @@ -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 index 0000000..c2dc8a8 --- /dev/null +++ b/.zsh/aliases/getpw @@ -0,0 +1 @@ +pass -c diff --git a/.zsh/aliases/mcd b/.zsh/aliases/mcd new file mode 100644 index 0000000..f1b6807 --- /dev/null +++ b/.zsh/aliases/mcd @@ -0,0 +1 @@ +() { mkdir -vp "$1" && cd "$1"; }