Compare commits

...

2 Commits

Author SHA1 Message Date
Ubergeek 2ff847d5b4 Added default conf 2022-02-06 15:05:20 -05:00
Ubergeek c1d1a75a72 Added conf file 2022-02-06 15:05:06 -05:00
2 changed files with 21 additions and 6 deletions

21
menu
View File

@ -8,8 +8,17 @@
# Licensed under the AGPL 3 or later.
#
##############################################################################
if [ -f ~/menushell.conf ]
then
. ~/menushell.conf
fi
if [ -f ./menushell.conf ]
then
. ./menushell.conf
fi
. ~/menushell.conf
tmpfile="/home/`whoami`/menu.tmp"
@ -34,29 +43,29 @@ quit () {
}
email () {
alpine
$mailer
return
}
wiki () {
elinks https://wiki.thunix.net
$browser https://wiki.thunix.net
return
}
browser () {
elinks https://thunix.net
$browser https://thunix.net
return
}
chat () {
weechat
$chat
return
}
shellout () {
clear
echo "Just type 'exit' to return to the menu."
bash -il
$cli
return
}

6
menushell.conf Normal file
View File

@ -0,0 +1,6 @@
#!/bin/bash
export browser="/usr/bin/elinks"
export mailer="/usr/bin/alpine"
export cli="/bin/bash -il"
export chat="/usr/bin/weechat"