-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_dot_files
More file actions
executable file
·35 lines (27 loc) · 1.38 KB
/
install_dot_files
File metadata and controls
executable file
·35 lines (27 loc) · 1.38 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
#!/bin/bash
echo "Create tmux configuration file (If doesn't exists)"
if [ ! -a ~/.tmux.conf ]; then ln -s $(pwd)/.tmux.conf ~/.tmux.conf > /dev/null 2>&1; fi
echo "Create vimrc file (If doesn't exists)"
if [ ! -a ~/.vimrc ]; then ln -s $(pwd)/.vimrc ~/.vimrc > /dev/null 2>&1; fi
echo "Create vim configuration folder (If doesn't exists)"
if [ ! -d ~/.vim ]; then ln -s $(pwd)/.vim ~/.vim > /dev/null 2>&1; fi
PKG_OK=$(dpkg-query -W --showformat='${Status}\n' git|grep "install ok installed")
echo "Checking for somelib: "$PKG_OK
if [ "" == "$PKG_OK" ]; then
echo "No somelib. Setting up somelib."
sudo apt-get --force-yes --yes install git
fi
echo "Downloading Vundle for vim"
if [ ! -d ~/.vim/bundle/Vundle.vim ]; then
git clone "https://github.com/VundleVim/Vundle.vim.git" ~/.vim/bundle/Vundle.vim
fi
echo "Downloading zsh-syntax-highlighting"
if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting ]; then
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
fi
echo "Downloading zsh-autosuggestions"
if [ ! -d ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting ]; then
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
fi
echo "Create zsh configuration file (If doesn't exists)"
if [ ! -a ~/.zshrc ]; then ln -s $(pwd)/.zshrc ~/.zshrc > /dev/null 2>&1; fi