-
Notifications
You must be signed in to change notification settings - Fork 0
/
instala-alpine.sh
executable file
·43 lines (39 loc) · 1015 Bytes
/
instala-alpine.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/sh
principal() {
echo "Script de inicialização Geral do Ed - Debian"
sleep 2
#cd /home/edkallenn/
#read -p "Qual a pasta que vc deseja copiar o coneteudo das Ferramentas? " pasta1
#echo 'A pasta escolhida foi: ' $pasta1
#$pasta1 = '~'
#apt-get install fortunes -y
#apt-get install fortunes-br -y
cd $HOME
pasta='/FerramentasProgramacao/'
if [ -d $pasta ]; then
echo "O diretório $pasta já existe"
#copiar
else
git clone https://github.com/ed1rac/FerramentasProgramacao.git
copiar
fi
executa
}
copiar() {
#raiz='/home/edkallenn/FerramentasProgramacao/'
#raiz=$pasta1'/FerramentasProgramacao/'
#echo $raiz
#cd $raiz
cd $HOME/FerramentasProgramacao/
pwd
cp bash-profile/bash-ubuntu-on-windows/.bashrc $HOME -r -f -v
cp nano/nanorc /etc -f -v
cp vim-temas/.vim ~ -r -f && cp vim-temas/.vimrc $HOME -r -f -v
cd $HOME
}
executa() {
#cd ~
source $HOME/.bashrc
#/usr/games/fortune | /usr/games/cowsay -f tux
}
principal