From 776d6512f2a088d136b14fe9fc1d1cfd77c1460a Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 7 Feb 2021 16:19:05 +0100 Subject: functions.zsh: Various improvements .zsh.after/functions.zsh: Add .deb support to lstar(). Add pasters() to paste stdin to paste.rs. Change inproxychrome to rely on a separate chromium profile. --- .zsh.after/functions.zsh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 08ede74..7a87bee 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -101,7 +101,7 @@ function incognichrome { } function inproxychrome { - chromium --incognito --proxy-server=apu-serve:8123 + chromium --incognito --proxy-server=apu-serve:8123 --user-data-dir="$HOME/.config/chromium-proxy" } ## ZSH @@ -212,6 +212,9 @@ ex2() { lstar() { if [ -f "$1" ] ; then case "$1" in + *.deb) + ar -tv "$1" + ;; *.bz2) tar -tvf "$1" --force-local ;; @@ -386,4 +389,10 @@ function sdsjkS(){ eval ${journal_cmd} } + +function pasters() { + local file="${1:-/dev/stdin}" + curl --data-binary @"${file}" https://paste.rs +} + # FUNCTIONS > -- cgit v1.2.3-54-g00ecf