-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-linux
More file actions
executable file
路49 lines (35 loc) 路 1.84 KB
/
Copy pathsetup-linux
File metadata and controls
executable file
路49 lines (35 loc) 路 1.84 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
#!/bin/bash
echo "Updating apt"
sudo apt update
echo "Installing some apps"
sudo apt install git zsh vim mosh tmux mtr pwgen youtube-dl subnetcalc htop glances tldr curl fonts-powerline -y
echo "Installing Oh my ZSH"
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
echo "Installing zsh plugins & theme"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
git clone https://github.com/denysdovhan/spaceship-prompt.git ~/.oh-my-zsh/custom/themes/spaceship-prompt
ln -s ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting.plugin.zsh
ln -s ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions.plugin.zsh
ln -s ~/.oh-my-zsh/custom/themes/spaceship-prompt/spaceship.zsh-theme ~/.oh-my-zsh/custom/themes/spaceship.zsh-theme
echo "Setup configuration files"
rm ~/.zshrc ~/.aliases ~/.gitconfig ~/.gitignore ~/.spaceship_options ~/.tmux.conf
config_files=`pwd`/config/*
for file in $config_files; do
config=$(basename $file)
echo "Creating symlink for .$config"
ln -s $file ~/.$config
done
echo "Creating symlink for .zshrc (the linux version)"
ln -s `pwd`/zshrc/zshrc-linux ~/.zshrc
echo "Setup vim theme"
mkdir -p ~/.vim/colors
vim_theme=`pwd`/themes
ln -s $vim_theme/dracula.vim ~/.vim/colors/dracula.vim
#echo "Installing SpaceVim"
#curl -sLf https://spacevim.org/install.sh | bash
echo "Setting zsh from brew as default shell, and adding it to /etc/shells (needs sudo)"
sudo tee -a /etc/shells <<< "/bin/zsh"
sudo usermod -s /bin/zsh $USER
echo "Setup done, exiting. Open a new terminal to see changes."
exit 0