From 69568a1f583b6e383c6b8788e7d739de9566dd8c Mon Sep 17 00:00:00 2001 From: TimetravelerDD Date: Wed, 29 Jun 2022 13:43:12 +0200 Subject: [PATCH] Update gamselect.sh (this is one of my first attempts of using github, so please forgive me if I got something wrong) 1) add missing fi statement for the .bashrc file 2) make the file path consistent across the whole script (gam is to be assumed to be in the $HOME/bin/ path) GAM=$HOME/bin/gamadv-xtd3/gam --- gamselect.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gamselect.sh b/gamselect.sh index bc5064a..8b18c5d 100644 --- a/gamselect.sh +++ b/gamselect.sh @@ -17,6 +17,7 @@ # PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]:\[\033[01;32m\][$GAMSECTION]\[\033[00m\]\$ ' # else # PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\ $GAMSECTION $ ' +#fi # 2. Set this file as an alias based on where you saved the file; I keep mine in ~/bin. The source bit is important. # alias gamselect='source $HOME/bin/gamselect.sh' @@ -24,7 +25,7 @@ # 3. This is the code used in this gamselect.sh file # Set the path to the GAM you want to use -GAM=$HOME/gamadv-xtd3/gam +GAM=$HOME/bin/gamadv-xtd3/gam # If you change to default section, say so, and turn PS1 green (requires 0 byte json files, else it is NOT safe!). if [ "$1" = "default" ]; then