-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·98 lines (83 loc) · 2.26 KB
/
install.sh
File metadata and controls
executable file
·98 lines (83 loc) · 2.26 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
#! /bin/bash sudo apt update
sudo apt install -y vim \
git \
curl \
zsh \
tmux \
ctags \
cmake \
clang \
zlib1g-dev \
libssl-dev \
python-dev \
python3-dev \
libreadline-dev \
exuberant-ctags \
build-essential \
fonts-powerline \
ca-certificates \
ttf-ancient-fonts \
silversearcher-ag \
apt-transport-https \
software-properties-common
# install k-tmux
curl https://raw.githubusercontent.com/wklken/k-tmux/master/tmux.conf > ~/.tmux.conf
# install monoid
mkdir -p ~/.fonts
cd ~/.fonts
if ! sudo test -f "Monoisome-Regular.ttf"
then
sudo wget https://github.com/larsenwork/monoid/raw/master/Monoisome/Monoisome-Regular.ttf
fc-cache
else
echo "Monoisome font is existing"
fi
# Install Zsh
sudo chsh -s $(which zsh)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# install theme
cd ~/.oh-my-zsh/themes
if ! sudo test -f "bullet-train.zsh-theme"
then
sudo wget http://raw.github.com/caiogondim/bullet-train-oh-my-zsh-theme/master/bullet-train.zsh-theme
# change theme to "bullet-train"
else
echo "bullet train theme is existing"
fi
# install rbenv
if ! [ -x "$(command -v rbenv)" ]
then
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
cd ~/.rbenv && sudo src/configure && sudo make -C src
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc
sudo mkdir -p "$(rbenv root)"/plugins
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
rbenv install 2.4.1
rbenv global 2.4.1
rbenv rehash
eval "$(rbenv init -)"
else
echo "rbenv is installed"
fi
#install k-vim
if [ ! -d "$HOME/k-vim" ]
then
echo "will instal k-vim"
# cd ~
# git clone https://github.com/2pd/k-vim.git
# cd k-vim
# sh -x install.sh
else
echo "k-vim is installed"
fi
# install docker
if [ -x "$(command -v docker)" ]
then
echo "Docker is installed"
else
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu artful edge"
sudo apt update
sudo apt-get install docker-ce
fi