-
Notifications
You must be signed in to change notification settings - Fork 0
/
instala-config-codespace.sh
67 lines (65 loc) · 1.84 KB
/
instala-config-codespace.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#!/bin/bash
principal() {
echo "Script de inicialização do Ed"
sleep 2
apt update
apt upgrade
apt install git -y
apt install nano -y
apt install vim -y
apt install iputils-ping -y
apt install neofetch -y
#cd /home/edkallenn/
#read -p "Qual a pasta que vc deseja copiar o coneteudo das Ferramentas? (/home/edkallenn) " pasta1
#echo 'A pasta escolhida foi: ' $pasta1
cd $HOME
sleep 2
#pasta=$HOME'/FerramentasProgramacao/'
#if [ -d $pasta ]; then
# echo "O diretório $pasta já existe"
# copiar
#else
#cd $pasta
git clone https://github.com/ed1rac/FerramentasProgramacao.git
copiar
#fi
executa
echo "Alterando o prompt"
sleep 2
copia_oh_my_posh
}
copiar() {
#raiz='/home/edkallenn/FerramentasProgramacao/'
#raiz=$pasta1'/FerramentasProgramacao/'
raiz=$HOME'/FerramentasProgramacao/'
#echo $raiz
#cd $raiz
cd $HOME'/FerramentasProgramacao/'
pwd
cp bash-profile/bash-ubuntu-on-windows/.bashrc ~ -r -f -v
cp nano/nanorc /etc -f -v
cp vim-temas/.vim ~ -r -f && cp vim-temas/.vimrc ~ -r -f -v
cd ~
}
executa() {
#cd ~
echo "Instalação do Fortunes-b e o Cowsay"
apt-get install fortunes-br -y
apt install cowsay -y
echo "export DISPLAY=:0" >> $HOME/.bashrc #Para o WSL 'visual' usando Xming
echo "/usr/games/fortune | /usr/games/cowsay -f tux" >> ~/.bashrc
source $HOME/.bashrc
cd $HOME
#xrandr -s aResoluçãoEscolhida >> .profile # linha para configurar a resolução no Bodhi Linux
}
copia_oh_my_posh(){
#curl -s https://ohmyposh.dev/install.sh | bash -s
curl -s https://ohmyposh.dev/install.sh | bash -s -- -d /home/vscode
~/oh-my-posh font install 3270
~/oh-my-posh font install CascadiaCode
~/oh-my-posh font install Arimo
~/oh-my-posh font install DroidSansMono
#oh-my-posh init bash --config /amro.omp.json
eval "$(/home/vscode/oh-my-posh init bash --config ~/.cache/oh-my-posh/themes/amro.omp.json)"
}
principal