-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup
executable file
·37 lines (29 loc) · 1.05 KB
/
setup
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/sh
dotFilesDir="$(dirname $0)"
# TODO : make this script work on windows (msysgit or cygwin)
# get required packages (only for ubuntu)
echo "====[ Installing Required Packages ]==="
sudo apt-get install --yes --force-yes \
bash \
zsh \
git \
tree \
vim \
vim-gtk \
curl \
htop \
ack-grep
# TODO : install to "~/.dotfiles" by default, or to folder provided as 1st parameter
# - clone from git repository
# - git submodule update --init #sould be done from cloned folder
echo "====[ Change default shell to ZSH ]==="
chsh -s /bin/zsh
echo "====[ Create Symbolic Links ]==="
# TODO : only create links if those features are enabled
ln -sfv ${dotFilesDir}/_vim/.vim ${HOME}/.vim
ln -sfv ${dotFilesDir}/_vim/.vimrc ${HOME}/.vimrc
ln -sfv ${dotFilesDir}/_oh-my-zsh ${HOME}/.oh-my-zsh
ln -sfv ${dotFilesDir}/_zshrc ${HOME}/.zshrc
ln -sfv ${dotFilesDir}/_tmux.conf ${HOME}/.tmux.conf
#ln -sfv {dotFilesDir}r/_Xmodmap $HOME/.Xmodmap
# TODO : create links for "ack" and "d" in ~/bin