Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
Update main.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kevadesu authored Jun 9, 2023
1 parent 6659499 commit 677d6cf
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,32 @@ echo "
|_____/|_| |_|\___|_|_|\___\___| .__/ \__|_|\___/|_| |_|
A shell inside a shell | |
|_|"

shcept_main
}

shcept_main() {
echo ""$PWD
read -p "╰» " SHCEPT_ANSWER
$SHCEPT_ANSWER
echo ""$PWD
echo "├/"$USER
read -p "" SHCEPT_ANSWER
case "$SHCEPT_ANSWER" in
zhcpt-e)
echo -e "#!/bin/bash\n# This file is important if you want to run multiple commands at once in Shellception.\n# This file gets wiped every time you edit it. To keep the contents of the file,\n# run 'zhcpt-e-k' instead to edit the file while keeping the content aswell. To run the script, type 'zhcpt-r'." > ~/zhcpt.sh
nano ~/zhcpt.sh
chmod +x ~/zhcpt.sh
;;
zhcpt-e-k)
nano ~/zhcpt.sh
chmod +x ~/zhcpt.sh
;;
zhcpt-r)
chmod +x ~/zhcpt.sh
bash ~/zhcpt.sh
;;
*)
$SHCEPT_ANSWER || shcept_main
;;
esac
shcept_main
}

Expand Down

0 comments on commit 677d6cf

Please sign in to comment.