experimenting with getting user input
This commit is contained in:
parent
fcec1df929
commit
43a37c1f14
2 changed files with 29 additions and 19 deletions
29
deps.sh
Executable file
29
deps.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
#These are the base dependencies for any install
|
||||
|
||||
echo "installing base dependencies"
|
||||
sudo apt-get -my install git \
|
||||
stow \
|
||||
etckeeper \
|
||||
tmux \
|
||||
zsh \
|
||||
vim \
|
||||
powerline\
|
||||
htop \
|
||||
mc \
|
||||
curl \
|
||||
# byobu \
|
||||
|
||||
read -p "Does this system need ssh access?" -n 1 -r
|
||||
if [[ ! $REPLY =~ ^[Yy]$ ]]
|
||||
then sudo apt-get install openssh-server
|
||||
fi
|
||||
read -p "Does this system have a GUI?" -n 1 -r
|
||||
if [[ ! $REPLY = [Yy]$ ]]
|
||||
then sudo apt-get install emacs
|
||||
else sudo apt-get install emacs-nox
|
||||
fi
|
||||
|
||||
#echo "enabling byobu"
|
||||
#byobu-enable
|
||||
|
19
deps.zsh
19
deps.zsh
|
@ -1,19 +0,0 @@
|
|||
#!/bin/sh
|
||||
#These are the base dependencies for any install
|
||||
|
||||
echo "installing base dependencies"
|
||||
sudo apt-get -m install openssh-server \
|
||||
stow \
|
||||
tmux \
|
||||
zsh \
|
||||
vim \
|
||||
powerline\
|
||||
htop \
|
||||
mc \
|
||||
curl \
|
||||
# byobu \
|
||||
#emacs need to find a way to select cmd only or with GUI
|
||||
|
||||
#echo "enabling byobu"
|
||||
#byobu-enable
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue