mirror of
https://github.com/hackerschoice/segfault.git
synced 2024-06-25 16:28:37 +00:00
curl2
This commit is contained in:
parent
2c1f5258cc
commit
4932e7d9e4
@ -70,6 +70,7 @@ tty -s && [[ -n $TERM ]] && [[ "$TERM" != dumb ]] && {
|
||||
|
||||
# curl otherwise shows Progress Meter if stdout is piped to | grcat
|
||||
function curl {
|
||||
[[ "$1" == "rpc"* ]] && { command curl "$@"; return; }
|
||||
[[ ! -t 1 ]] && { command curl "$@"; return; }
|
||||
/usr/bin/grc --colour=auto curl "$@"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user