From 096afa2d0314f68d7843e1a57a4af8b2da0e8b7c Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 26 Aug 2019 15:27:31 +0200 Subject: [PATCH] Add alias to send data to PrivateBin instance --- zshrc | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/zshrc b/zshrc index 8b552e5..330e776 100644 --- a/zshrc +++ b/zshrc @@ -106,7 +106,7 @@ alias mane="LANG=C man " # Afficher les lignes trop longues sur la ligne suivante plutot que de remplacer par un "$": alias most='most -w' -# Commandes de gestion des paquets pour aptitude ou yum +# Commandes de gestion des paquets pour aptitude ou yum {{{ if [ -d /etc/apt ]; then alias acle='sudo aptitude clean' alias afil='apt-file search' @@ -130,14 +130,16 @@ else alias ins='yum install' alias version='yum info &1|grep "Version"' fi +# }}} -# Grep aliases +# Grep aliases {{{ alias grep='grep --color=always -i ' alias gerp='grep -i' alias Grep='\grep ' alias gdpkg='dpkg -l | grep -- ' alias gmount='mount | grep -- ' alias gdf='df | grep -- ' +# }}} # Espace disque alias df='df -kTh' @@ -165,7 +167,13 @@ alias ci='screen -x ssh || screen -c ~/.screen/scr.ssh_ci' alias ta='tmux a || tmux' alias td='tmux detach' -## Git aliases − Try to prefix with 'gg'{{{ +# Send the content of a file to a privatebin +# Needs cpaste or any other Third party clients for PrivateBin +# https://github.com/PrivateBin/PrivateBin/wiki/Third-party-clients +alias pbin='~/repos/cpaste/cpaste --sourcecode --expire 1week --file ' + + +## Git aliases − Try to prefix with 'gg' {{{ ### Get status of the repo alias ggstatus='git status' ### Download any new commits