From 78cf9887a51f5d9ccc51f031878f8d83c3f93a9a Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Fri, 1 Dec 2023 14:53:15 +0100 Subject: [PATCH] Doodling in my bashrc. --- .bashrc | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 17506c2..37e3058 100644 --- a/.bashrc +++ b/.bashrc @@ -145,7 +145,7 @@ urlencode() # Removes *~ and #*# files in curent folder, for a depth limited to 3 folders. clean() { - find -maxdepth 3 \ + find -maxdepth 4 \ \( -name '*~' -o -name '#*#' -o -name .tox -o -name .mypy_cache \) \ -print0 | xargs -0 rm -vfr } @@ -170,9 +170,16 @@ wyz() curl https://wyz.fr/ -F"${1##*.}=@$1" } +code-block() +{ + printf '```%s\n' "$1" + cat + printf '```\n' +} + paf() { - local SECRET="eek8sohxa1quaeghee1I" + local SECRET="$(pass paf)" local AUTH="-HAuthorization: Secret $SECRET" local INSTANCE="https://p.afpy.org/" @@ -206,7 +213,8 @@ venv() cat >.envrc <