function enter_pentest if test $(count $argv) = 1 echo "logging enabled" distrobox enter --root $argv[1] -- script -a -B /pentest/working/terminal.log else if test $(count $argv) = 2 echo "logging disabled" distrobox enter --root $argv[1] else echo "USAGE:" echo "To start a distrobox with the terminal commands and outputs being logged:" echo "enter_pentest distrobox_name ex: enter_pentest atarchbox_template" echo "" echo "To start a distrobox without terminal commands and outputs being logged:" echo "enter_pentest distrobox_name n " echo "if logging is enabled, the log will be saved to /pentest/working/terminal.log" end end