Advertisement
v1ral_ITS

its.shell [ choose your defualt shell ]

Mar 29th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.40 KB | None | 0 0
  1. #!/bin/bash
  2. dialog --inputbox "Bash shell or zsh shell? " 0 0 2> /tmp/inputbox.tmp.$$
  3. retval=$?
  4. my_shell_1=`cat /tmp/inputbox.tmp.$$`
  5. rm -f /tmp/inputbox.tmp.$$
  6. dialog --yesno "You want $my_shell" 0 0 2> /tmp/inputbox.tmp.$$
  7. retval=$?
  8. yes_no=`cat /tmp/inputbox.tmp.$$`
  9. rm -f /tmp/inputbox.tmp.$$
  10. case $retval in
  11. 0)
  12. clear; ${my_shell_1};;
  13. 1)
  14. echo -e ""$(\clear)"\nv1ral_ITS\nwww.pastebin.com/u/v1ral_ITS\n";;
  15. esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement