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] 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)