From 8fafb14b77af34ac11246af54d3f500933d4f7e4 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 1 Jun 2024 13:37:03 +1000 Subject: [PATCH] add ncurl function - used curl + netcat from pass password store --- .config/shell/common | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/shell/common b/.config/shell/common index 5b01861..243b791 100644 --- a/.config/shell/common +++ b/.config/shell/common @@ -54,6 +54,10 @@ ytpl-export () {yt-dlp -j --flat-playlist "$1" | jq -r '.id' | sed 's_^_https:// # common date format shdate () {date +'%Y%m%d'} +ncurl() { + curl --netrc-file <(pass show personal/netrc) "$@" +} + # create function later: # large image heavy pdf into smaller pdf # below will: