Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 598 Bytes
# "minimal" example rule for Dispak
# © 2017, Amaury Bouchard <>
# Rule's name.
# Show help for this rule.
rule_help_minimal() {
echo " dpk $(ansi bold)minimal$(ansi reset)"
echo " $(ansi dim)Minimal rule that displays the current user login and the current working directory.$(ansi reset)"
# Execution of the rule
rule_exec_minimal() {
USER_LOGIN="$(id -un)"
echo "Current user login: $(ansi blue)$USER_LOGIN$(ansi reset)"
echo "Current working directory: $(ansi yellow)$WORKING_DIR$(ansi reset)"