diff options
author | Yuchen Pei <id@ypei.org> | 2024-04-02 15:46:44 +1100 |
---|---|---|
committer | Yuchen Pei <id@ypei.org> | 2024-04-02 15:46:44 +1100 |
commit | 546aac08434bce4e8f109be0b8144d800e2a8009 (patch) | |
tree | 01c1805322e6fc2052092d4140319d404ce32748 | |
parent | 60d73d1ec7347f9b409965c2721d2e75adfb9889 (diff) |
[bash] An alias to get url behind one redirection
-rw-r--r-- | misc/.bashrc | 2 |
1 files changed, 2 insertions, 0 deletions
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" |