From eafefc2821c5da744ed1d5a6e9da52f8d127d2ae Mon Sep 17 00:00:00 2001 From: Luis Adha <40796508+luisadha@users.noreply.github.com> Date: Wed, 24 Jul 2024 21:48:11 +0700 Subject: [PATCH] Add alias for better experience There is no need to export the required variable, just call the alias, it will include the variable dependency. --- plugins/brandomusicv.alrc.plugin.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/brandomusicv.alrc.plugin.sh b/plugins/brandomusicv.alrc.plugin.sh index 2e22eec..2f5399f 100644 --- a/plugins/brandomusicv.alrc.plugin.sh +++ b/plugins/brandomusicv.alrc.plugin.sh @@ -4,7 +4,7 @@ # Copyright (c) 2023 Luisadha, GNU GPLv3 set +o noclobber -function brandomusicv() +function __brandomusicv() { # Testing on Musik com.miui.player (6.4.20i) # Testing on Dialog Music Player phone.vishnu.dialogmusicplayer (v2.1.1) @@ -65,6 +65,7 @@ EOF esac return } +alias brandomusicv='setenv BRANDO_RESPONSE y & __brandomusicv' plugin_shortname=$(echo "${BASH_SOURCE[0]}" | awk '{gsub(/.*[/]|[.].*/, "", $0)} 1' ) alrc_plugin_enabled+=($plugin_shortname)