Skip to content

Commit

Permalink
Add alias for better experience
Browse files Browse the repository at this point in the history
There is no need to export the required variable, just call the alias, it will include the variable dependency.
  • Loading branch information
luisadha authored Jul 24, 2024
1 parent 5bf44f6 commit eafefc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/brandomusicv.alrc.plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit eafefc2

Please sign in to comment.