From 682dad7ec8550abc006e1c212b6a7436462a0c5f Mon Sep 17 00:00:00 2001 From: czoczo Date: Wed, 19 Dec 2018 00:08:37 +0100 Subject: [PATCH] changed install method to be more transparent --- README.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c9d65f6..d0308ae 100644 --- a/README.md +++ b/README.md @@ -1,15 +1,25 @@ # Better Bash +Description? Pictures say more than words! ## screenshot: ![alt text](https://cz0.cz/static/untracked/images/bb_example.png "Example of BetterBash at work") ## quick install: ``` -wget https://cz0.cz/getbb.sh -bash getbb.sh -source .bashrc +URL='https://cz0.cz/git/czoczo/BetterBash/raw/branch/master/.bshell' && \ +DIR=~/.bshell && \ +CMD='[ -f ~/.bshell/bb.sh ] && . ~/.bshell/bb.sh' && \ +mkdir -p $DIR && \ +wget $URL/bb.sh -O $DIR/bb.sh && \ +wget $URL/git-prompt.sh -O $DIR/git-prompt.sh && \ +grep -q "$CMD" ~/.bashrc || echo "$CMD" >> ~/.bashrc && \ +source ~/.bashrc ``` or just: ``` -curl https://cz0.cz/getbb.sh | sh && source .bashrc +curl https://cz0.cz/getbb.sh | sh && source ~/.bashrc ``` (but only if you really, really, really trust me) + + + +(in fact, no one except me should... One of the reasons it's a bad habit: https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-bash-server-side/ )