-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·44 lines (35 loc) · 1.32 KB
/
setup.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
set -evxu
# path of this script
script_path="$(readlink -f "$(readlink "${BASH_SOURCE[0]}")")"
script_dir="$(cd "$(dirname "${script_path}")" && pwd)"
export DOTFILES="${script_dir}"
# git configuration
sudo apt -y install git
git config --global user.name "Özgür Murat Sağdıçoğlu"
git config --global user.email zgrmrts@gmail.com
git config --global core.editor vi
# vim configuration
mkdir -p ~/.vim/backup
mkdir -p ~/.vim/swap
mkdir -p ~/.vim/undo
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
ln -s ${DOTFILES}/.vimrc ${HOME}/.vimrc
sudo apt -y install vim
vim +PluginInstall +qall
# startup scripts
echo "# my special configuration" >> ~/.bashrc
echo "export DOTFILES=${DOTFILES}" >> ~/.bashrc
echo "source \${DOTFILES}/.bashrc" >> ~/.bashrc
echo "# my special configuration" >> ~/.profile
echo "export DOTFILES=${DOTFILES}" >> ~/.profile
echo "source \${DOTFILES}/.profile" >> ~/.profile
# my directory structure
mkdir -p ${HOME}/bin
# terminator configuration file
sudo apt -y install terminator
mkdir -p ${HOME}/.config/terminator/
ln -s ${DOTFILES}/.config/terminator/config ${HOME}/.config/terminator/config
ln -s ${DOTFILES}/.local/share/applications/termicustom.desktop ${HOME}/.local/share/applications/termicustom.desktop
# special history & pwd
mkdir ~/.qw-env
echo installation complete