From 546aac08434bce4e8f109be0b8144d800e2a8009 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 2 Apr 2024 15:46:44 +1100 Subject: [bash] An alias to get url behind one redirection --- misc/.bashrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'misc') diff --git a/misc/.bashrc b/misc/.bashrc index b00ceb7..5f8c3cf 100644 --- a/misc/.bashrc +++ b/misc/.bashrc @@ -123,6 +123,8 @@ alias ll='ls -l' alias updatedb='sudo updatedb' # wget it like it's curl alias wgets="wget -O- 2>/dev/null" +# get url behind one redirection +alias wgre="wget --spider --max-redirect=0" # this allows to open an url with tor-browser from within emacs, see # `my-browse-url-tor-browser' alias tor-browser="tor-browser --allow-remote" -- cgit v1.2.3