From 08530330c1cb3dbf5087e6f552baa9857f206ded Mon Sep 17 00:00:00 2001 From: Ceda EI Date: Thu, 7 Dec 2023 19:09:04 +0530 Subject: [PATCH] Replace references to master with main --- README.md | 2 +- docs/Installation.md | 2 +- docs/development/creating_themes.md | 5 ++++- install.sh | 8 ++------ 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index fdd888a..d1a1209 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ A customizable, extensible, themable bash prompt. ## One step Installation ```sh -curl https://gitlab.com/ceda_ei/wish/raw/master/install.sh | bash +curl https://gitlab.com/ceda_ei/wish/raw/main/install.sh | bash ``` ## Manual Installation diff --git a/docs/Installation.md b/docs/Installation.md index 8921c72..66f2991 100644 --- a/docs/Installation.md +++ b/docs/Installation.md @@ -3,7 +3,7 @@ ## One step Installation ```sh -curl https://gitlab.com/ceda_ei/wish/raw/master/install.sh | bash +curl https://gitlab.com/ceda_ei/wish/raw/main/install.sh | bash ``` ## Manual Installation diff --git a/docs/development/creating_themes.md b/docs/development/creating_themes.md index c339f7b..5f200d3 100644 --- a/docs/development/creating_themes.md +++ b/docs/development/creating_themes.md @@ -7,4 +7,7 @@ Themes need to define the following variables. Plugins will fallback to these variables if they are not themed. -Themes also need to define variables for plugins. For each plugin named `abc`, the theme needs to define `WISH_ABC_BG` and `WISH_ABC_FG`. Themes can optionally iterate over `WISH_PLUGINS` array to ensure to theme all elements. Check existing [themes](https://gitlab.com/ceda_ei/wish/tree/master/themes). +Themes also need to define variables for plugins. For each plugin named `abc`, +the theme needs to define `WISH_ABC_BG` and `WISH_ABC_FG`. Themes can +optionally iterate over `WISH_PLUGINS` array to ensure to theme all elements. +Check existing [themes](https://gitlab.com/ceda_ei/wish/tree/main/themes). diff --git a/install.sh b/install.sh index ae5b083..edb9772 100755 --- a/install.sh +++ b/install.sh @@ -3,12 +3,8 @@ if hash git; then git clone https://gitlab.com/ceda_ei/Wish.git $HOME/.config/wish else - curl https://gitlab.com/ceda_ei/wish/-/archive/master/wish-master.tar -o /tmp/wish.tar - mkdir $HOME/.config 2> /dev/null - cd /tmp/ - tar xf wish.tar - mv wish-master/ wish/ - mv wish/ $HOME/.config/ + echo 'Git not found. Please install git.' >&2 + exit 1 fi cp $HOME/.config/wish/config.default.gie $HOME/.config/wish/config.gie