Skip to content

Commit

Permalink
Merge pull request #4 from luisadha/luisadha-patch-1
Browse files Browse the repository at this point in the history
Luisadha patch 1
  • Loading branch information
luisadha authored Jul 24, 2024
2 parents eafefc2 + 42cf51c commit 537c066
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
9 changes: 4 additions & 5 deletions alrc-termux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
# set -xv

# major * minor * patch *
export ALRC_VERSION="4.3.06"
export ALRC_VERSION="4.3.07"

ALRC_UDATE='26/04/24 00:54 WIB'
ALRC_UDATE='24/07/24 22:18 WIB'

if [ "$ALRC_USE_ENV_PATH" == "true" ]; then
export ALRC_HOME="$(cd -P -- "$(dirname -- "$(readlink "${BASH_SOURCE[0]}")")" && pwd)"
Expand Down Expand Up @@ -427,16 +427,15 @@ case "$ALRC_USE_STARSHIP" in
alrc_starship=false;
;;
"random")
set +o noclobber
set +o noclobber;
alrc_starship=true;
source $ALRC_HOME/lib/ext_command_helper.sh; al_include_starship; #shuffle prompt
#starship preset $(cat $ALRC_HOME/cache/active_prompt.dat) -o ~/.config/starship.toml
;;
*)
set +o noclobber
set +o noclobber;
alrc_starship=true;
source $ALRC_HOME/lib/ext_command_helper.sh; al_include_starship;
#starship preset ${ALRC_USE_STARSHIP} -o ~/.config/starship.toml
;;
esac

Expand Down
4 changes: 2 additions & 2 deletions plugins/brandomusicv.alrc.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function __brandomusicv()


#export BRANDO_RESPONSE=
#export BRANDO_NO_CACHE=
export BRANDO_NO_CACHE=true

# Variabel ini digunakan untuk aplikasi DMP, aktifkan variabel di .bashrc jika anda memutar dengan DMP player
# Direkomendasikan untuk mengaktifkan variabel ini secara setinggan default untuk menghindari error
Expand Down Expand Up @@ -65,7 +65,7 @@ EOF
esac
return
}
alias brandomusicv='setenv BRANDO_RESPONSE y & __brandomusicv'
alias brandomusicv='setenv BRANDO_RESPONSE y && __brandomusicv'

plugin_shortname=$(echo "${BASH_SOURCE[0]}" | awk '{gsub(/.*[/]|[.].*/, "", $0)} 1' )
alrc_plugin_enabled+=($plugin_shortname)
Expand Down
2 changes: 2 additions & 0 deletions plugins/starship.alrc.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ done

if [ $ALRC_USE_STARSHIP == "random" ]; then
al_shuf_starship_prompt &>/dev/null
else
starship preset ${ALRC_USE_STARSHIP} -o ~/.config/starship.toml
fi
eval "$(starship init bash)"
unset ps;
Expand Down

0 comments on commit 537c066

Please sign in to comment.