From 14f9f64e09d9bdc42b700b66147b0d18009375ac Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Tue, 17 Mar 2020 21:30:07 -0600 Subject: [PATCH] Create welcome --- welcome | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 welcome diff --git a/welcome b/welcome new file mode 100644 index 0000000..2337172 --- /dev/null +++ b/welcome @@ -0,0 +1,45 @@ +#!/bin/sh + +dialog="dialog --ascii-lines --clear --backtitle tilde.club" + +$dialog --title "welcome to tilde.club!" \ + --msgbox "we're glad you're here! let's get you set up:" 8 30 \ + +$dialog --title "change your password" \ + --msgbox "check your welcome email for the temporary password. \n\ +enter it, then your new password twice for confirmation" 10 30 + +clear +passwd + +shellchoice=$(mktemp) + +$dialog --title "change your shell" --no-cancel \ + --menu "choose from the following shells. pick bash if you aren't \n\ +familiar with any of the others." 16 60 7 \ + "/bin/bash" "bash" \ + "/bin/sh" "sh" \ + "/bin/dash" "dash" \ + "/bin/zsh" "zsh" \ + "/usr/bin/xonsh" "xonsh (python shell, nonstandard)" \ + "/usr/bin/fish" "fish" 2> $shellchoice + +case $? in + 0) + shell=$(cat $shellchoice);; + *) + shell=/bin/bash;; +esac + +clear +chsh -s $shell + +$dialog --title "you're all set!" \ + --msgbox "welcome to the ~club! \n\ +the best place to find us and get help is irc or the mailing list. \n\ +there's also lots of information on our wiki: https://tilde.club/wiki/\n\ + + +our default configuration drops you into byobu, a terminal multiplexer, \n\ +with irc and mutt (email client) pre-opened.\n\ +see 'man byobu' or press shift-f1 to see the default keybinds." 15 50