diff --git a/fish_functions/enter_pentest.fish b/fish_functions/enter_pentest.fish new file mode 100644 index 0000000..bd910d0 --- /dev/null +++ b/fish_functions/enter_pentest.fish @@ -0,0 +1,17 @@ +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