From 8943dfd19acb9bd53fab72c1ffbc8f71a030f895 Mon Sep 17 00:00:00 2001 From: Luis Adha <40796508+luisadha@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:16:50 +0700 Subject: [PATCH 1/3] Add alias for better experience rev. 2 There is no need to export the required variable, just call the alias, it will include the variable dependency. --- plugins/brandomusicv.alrc.plugin.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/brandomusicv.alrc.plugin.sh b/plugins/brandomusicv.alrc.plugin.sh index 2f5399f..fd71049 100644 --- a/plugins/brandomusicv.alrc.plugin.sh +++ b/plugins/brandomusicv.alrc.plugin.sh @@ -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 @@ -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) From bcf11a9b7db5d75b0678d62615df4f64d49c9e75 Mon Sep 17 00:00:00 2001 From: Luis Adha <40796508+luisadha@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:26:42 +0700 Subject: [PATCH 2/3] Add custom change prompt for starship --- alrc-termux.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/alrc-termux.sh b/alrc-termux.sh index 02dd3d8..cbe1e7a 100644 --- a/alrc-termux.sh +++ b/alrc-termux.sh @@ -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)" @@ -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 From 42cf51cff690ec2eab5cc371551370f589c14607 Mon Sep 17 00:00:00 2001 From: Luis Adha <40796508+luisadha@users.noreply.github.com> Date: Wed, 24 Jul 2024 22:30:03 +0700 Subject: [PATCH 3/3] Add custom name to change starship prompt --- plugins/starship.alrc.plugin.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/starship.alrc.plugin.sh b/plugins/starship.alrc.plugin.sh index baa9a4a..874c6a4 100644 --- a/plugins/starship.alrc.plugin.sh +++ b/plugins/starship.alrc.plugin.sh @@ -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;