-
Notifications
You must be signed in to change notification settings - Fork 0
/
ubuntu-config.16.04.sh
62 lines (39 loc) · 1.39 KB
/
ubuntu-config.16.04.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
cd ~
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install zsh
sudo apt-get install git
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
# dircolors
wget https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.256dark
# configure ~/.zshrc
sed -i '/ZSH_THEME\=\"[^"]*\"/c\ZSH_THEME="powerlevel9k/powerlevel9k"' ~/.zshrc
read -r -d '' zshrc_append << DONE
POWERLEVEL9K_MODE='nerdfont-complete'
POWERLEVEL9K_DISABLE_RPROMPT=true
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='▶ '
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=''
export NVM_DIR="\$HOME/.nvm"
[ -s "\$NVM_DIR/nvm.sh" ] && \. "\$NVM_DIR/nvm.sh" # This loads nvm
[ -s "\$NVM_DIR/bash_completion" ] && \. "\$NVM_DIR/bash_completion" # This loads nvm bash_completion
eval \`dircolors ~/dircolors.256dark\`
DONE
echo $zshrc_append >> ~/.zshrc
# java
sudo apt-get install default-jdk
# node.js via nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install --lts
npm install -g npm
# python
sudo apt-get install python3-pip
# ruby
sudo apt-get install ruby-full
sudo gem update --system
sudo gem install bundler
# htop process manager
sudo apt-get install htop