From ccaaf651a7eeef211512c2a69b8d6577e7f3cb12 Mon Sep 17 00:00:00 2001 From: JGill Date: Wed, 26 Feb 2020 15:34:19 +1030 Subject: [PATCH] suppress wget output --- quickz.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/quickz.sh b/quickz.sh index f61ec4c..201a7e6 100755 --- a/quickz.sh +++ b/quickz.sh @@ -18,7 +18,7 @@ fi echo -e "Installing oh-my-zsh\n" if [ -d ~/.oh-my-zsh ]; then - echo -e "oh-my-zsh is already installed" + echo -e "oh-my-zsh is already installed\n" else git clone --depth=1 git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh fi @@ -57,9 +57,9 @@ fi echo -e "Installing Nerd Fonts version of Hack, Roboto Mono, DejaVu Sans Mono\n" -wget -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf -P ~/.fonts/ -wget -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/RobotoMono/Regular/complete/Roboto%20Mono%20Nerd%20Font%20Complete.ttf -P ~/.fonts/ -wget -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DejaVuSansMono/Regular/complete/DejaVu%20Sans%20Mono%20Nerd%20Font%20Complete.ttf -P ~/.fonts/ +wget -q --show-progress -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf -P ~/.fonts/ +wget -q --show-progress -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/RobotoMono/Regular/complete/Roboto%20Mono%20Nerd%20Font%20Complete.ttf -P ~/.fonts/ +wget -q --show-progress -N https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DejaVuSansMono/Regular/complete/DejaVu%20Sans%20Mono%20Nerd%20Font%20Complete.ttf -P ~/.fonts/ fc-cache -fv ~/.fonts @@ -105,7 +105,7 @@ fi if [ ! -L ~/.quickzsh/todo/bin/todo.sh ]; then echo -e "Installing todo.sh in ~/.quickzsh/todo\n" mkdir -p ~/.quickzsh/todo/bin - wget "https://github.com/todotxt/todo.txt-cli/releases/download/v2.11.0/todo.txt_cli-2.11.0.tar.gz" -P ~/.quickzsh/ + wget -q --show-progress "https://github.com/todotxt/todo.txt-cli/releases/download/v2.11.0/todo.txt_cli-2.11.0.tar.gz" -P ~/.quickzsh/ tar xvf ~/.quickzsh/todo.txt_cli-2.11.0.tar.gz -C ~/.quickzsh/todo --strip 1 && rm ~/.quickzsh/todo.txt_cli-2.11.0.tar.gz ln -s ~/.quickzsh/todo/todo.sh ~/.quickzsh/todo/bin/todo.sh # so only .../bin is included in $PATH ln -s ~/.quickzsh/todo/todo.cfg ~/.todo.cfg # it expects it there or ~/todo.cfg or ~/.todo/config @@ -113,14 +113,14 @@ else echo -e "todo.sh is already instlled in ~/.quickzsh/todo/bin/\n" fi -if [[ $1 == "--cp-hist" ]] || [ $1 == "-c" ]; then +if [[ $1 == "--cp-hist" ]] || [[ $1 == "-c" ]]; then echo -e "\nCopying bash_history to zsh_history\n" if command -v python &>/dev/null; then - wget https://gist.githubusercontent.com/muendelezaji/c14722ab66b505a49861b8a74e52b274/raw/49f0fb7f661bdf794742257f58950d209dd6cb62/bash-to-zsh-hist.py + wget -q --show-progress https://gist.githubusercontent.com/muendelezaji/c14722ab66b505a49861b8a74e52b274/raw/49f0fb7f661bdf794742257f58950d209dd6cb62/bash-to-zsh-hist.py cat ~/.bash_history | python bash-to-zsh-hist.py >> ~/.zsh_history else if command -v python3 &>/dev/null; then - wget https://gist.githubusercontent.com/muendelezaji/c14722ab66b505a49861b8a74e52b274/raw/49f0fb7f661bdf794742257f58950d209dd6cb62/bash-to-zsh-hist.py + wget -q --show-progress https://gist.githubusercontent.com/muendelezaji/c14722ab66b505a49861b8a74e52b274/raw/49f0fb7f661bdf794742257f58950d209dd6cb62/bash-to-zsh-hist.py cat ~/.bash_history | python3 bash-to-zsh-hist.py >> ~/.zsh_history else echo "Python is not installed, can't copy bash_history to zsh_history\n"