-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·36 lines (31 loc) · 1.23 KB
/
install.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
#!/bin/bash
# zshrc setting
if [ $# = 1 ]; then
if [ $1 = "ros1" ]; then
sed -i '1 i # Script setting\nexport ZSH_SCRIPT_SETTING="ros1"\n' ./zsh_config/.zshrc
elif [ $1 = "ros2" ]; then
sed -i '1 i # Script setting\nexport ZSH_SCRIPT_SETTING="ros2"\n' ./zsh_config/.zshrc
fi
else
sed -i '1 i # Script setting\nexport ZSH_SCRIPT_SETTING=""\n' ./zsh_config/.zshrc
fi
# Update package list
sudo apt update
# Install zsh
sudo apt install -y zsh
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
mkdir -p ~/.oh-my-zsh/custom/plugins/jovial
cp ./zsh_config/.zshrc ~/
cp ./zsh_config/jovial.zsh-theme ~/.oh-my-zsh/custom/themes/jovial.zsh-theme
cp ./zsh_config/jovial.plugin.zsh ~/.oh-my-zsh/custom/plugins/jovial/jovial.plugin.zsh
sudo chsh -s /bin/zsh
# Install tmux
sudo apt install -y tmux
cp ./tmux_config/.tmux.conf ~/
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
~/.tmux/plugins/tpm/bin/install_plugins
# Install vim
sudo apt install -y vim
cp ./vim_config/.vimrc ~/