aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2021-02-07 16:19:05 +0100
committerDavid Runge <dave@sleepmap.de>2021-02-07 16:19:05 +0100
commit776d6512f2a088d136b14fe9fc1d1cfd77c1460a (patch)
treee2b289d572502bee272f2484ea926756f5c63154
parent8e4842dd756ac2710cd8d871db7893cea770c51e (diff)
downloaddotfiles-776d6512f2a088d136b14fe9fc1d1cfd77c1460a.tar.gz
dotfiles-776d6512f2a088d136b14fe9fc1d1cfd77c1460a.tar.bz2
dotfiles-776d6512f2a088d136b14fe9fc1d1cfd77c1460a.tar.xz
dotfiles-776d6512f2a088d136b14fe9fc1d1cfd77c1460a.zip
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.
-rw-r--r--.zsh.after/functions.zsh11
1 files changed, 10 insertions, 1 deletions
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 >