-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.sh
More file actions
executable file
·124 lines (92 loc) · 3.52 KB
/
bootstrap.sh
File metadata and controls
executable file
·124 lines (92 loc) · 3.52 KB
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
#!/bin/sh
# Install X configs
echo "===> Bootstarp .Xresources ..."
echo "\t---> Create a symlink to .Xresource.d"
ln -s $PWD/xresources.d/ $HOME/.Xresources.d
echo "\t---> Create a symlink to .Xresource"
ln -s $PWD/xresources.d/xresources $HOME/.Xresources
echo "\t---> Create a symlink to .xinitrc"
ln -s $PWD/xresources.d/xinitrc $HOME/.xinitrc
ech "\t---> Merge 'xrdb'"
xrdb -merge -I$HOME ~/.Xresources
echo "===> Done bootstrap .Xresources"
# End X configs
# Install fonts
echo "===> Install patched fonts"
sh $PWD/fonts/install.sh
echo "===> Installed patched fonts"
echo "\t Done!\n"
# End install fonts
# Oh My ZSH
echo "---> installing oh-my-zsh"
sudo dnf install -y zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
echo "---> Changing default shell"
chsh -s /bin/zsh
echo "[WARN] You need restart you terminal"
echo "---> Installing custom theme PowerLevel9K"
git clone https://github.com/bhilburn/powerlevel9k.git $HOME/.oh-my-zsh/custom/themes/powerlevel9k
# Copy zshrc
echo "---> coping zshrc"
ln -s $PWD/zhs/zshrc $HOME/.zshrc
# Install Antigen ZSH plugin manager
echo "===> Installing zsh plugin manager Antigen"
echo "---> Clone from oficial repo to $HOME/antigen"
#git clone https://github.com/zsh-users/antigen.git $HOME/.antigen
#yaourt -S antigen-git
mkdir -p $HOME/.zsh
curl -L git.io/antigen > $HOME/.zsh/antigen.zsh
echo "# Import antigen ZSH Plugin Manager" >> $HOME/.zshrc
echo "source $HOME/.zsh/antigen.zsh" >> $HOME/.zshrc
echo "You have several alternative methods to install Antigen as well.
Using Debian package:
apt-get install zsh-antigen
On Archlinux you may use antigen-git package:
yaourt -S antigen-git
On OSX you may use Homebrew:
brew install antigen"
source $HOME/.zshrc
echo "---> Install zsh-syntax-highlighting"
# Syntax highlighting bundle.
antigen bundle zsh-users/zsh-syntax-highlighting
# git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $HOME/.oh-my-zsh/plugins/zsh-syntax-highlighting
# Install python packages
echo "---> [FIXME}: Install Python development tools"
# sudo apt-get install -y python3-dev python3-pip
echo "---> Install Pyhton PIP packages"
pip3 install --upgrade pip
pip3 install --user ipython
pip3 install --user git+git://github.com/Lokaltog/powerline
pip3 install --user powerline-status
pip3 install --user jupyter
echo "\t Done!\n"
# Install tmux files
echo "[TMUX ROLE]"
echo "---> Install tmux"
sudo dnf install -y tmux
echo "---> Create a symlink to tmux.conf"
ln -s $PWD/tmux/tmux.conf $HOME/.tmux.conf
echo "\t Done!\n"
# Install vim
echo "---> [FIXME] Install vim editor"
# sudo apt-get install -y ncurses-term exuberant-ctags vim vim-gnome python-dev tmux
sudo dnf -y vim vim-gnome ctags
echo "\t Done!\n"
echo "---> Config vim"
ln -s $PWD/vim $HOME/.vim
echo "\t Done!\n"
echo "[FIXME] NUMIX THEME"
echo "---> Adding numix ppa to source list ..."
# sudo add-apt-repository ppa:numix/ppa
# sudo apt-get update
echo "\t[OK]"
echo "---> [FIXME] Installing numix..."
# sudo apt-get install -y numix-gtk-theme numix-icon-theme-circle numix-* unity-tweak-tool
echo "\t [OK]"
echo "\t [Done]"
echo '---> Installing fzf: um fuzzy finder (buscador de arquivos) direto no terminal!! (y for all)'
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install
echo 'Pronto, agora você poderá usar Ctrl+T quando precisar procurar por arquivos, que nem você faria no seu editor ;-)'
echo 'Viste https://github.com/junegunn/fzf para mais informações'
echo "ASDF-VM (experimental)"
source asdf-vm/install.sh