Skip to content

Commit

Permalink
Add alias for better experience rev. 2
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 eafefc2 commit 8943dfd
Showing 1 changed file with 2 additions and 2 deletions.
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

0 comments on commit 8943dfd

Please sign in to comment.