-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·37 lines (27 loc) · 969 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·37 lines (27 loc) · 969 Bytes
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
#!/bin/bash
set -x
sudo apt update && \
sudo apt install -y vim-gtk3 tmux xclip
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BACKUP=".backup"
cd "${DIR}"
mkdir ${BACKUP}
mv ${HOME}/.vimrc ${BACKUP}/
mv ${HOME}/.tmux.conf ${BACKUP}/
mv ${HOME}/.bashrc ${BACKUP}/
mv ${HOME}/.inputrc ${BACKUP}/
mv ${HOME}/.pythonrc ${BACKUP}/
echo "so ${PWD}/vim/vimrc.vim" > ${HOME}/.vimrc
echo "source ${PWD}/tmux/tmux.conf" > ${HOME}/.tmux.conf
echo "source ${PWD}/bash/bashrc" > ${HOME}/.bashrc
grep -q "dotfiles/gitconfig" ${HOME}/.gitconfig || cat << EOF >> ${HOME}/.gitconfig
[include]
path = ${HOME}/dotfiles/gitconfig
EOF
cp pythonrc ${HOME}/.pythonrc
cp inputrc ${HOME}/.inputrc
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
git clone git://github.com/altercation/vim-colors-solarized.git
mv vim-colors-solarized ~/.vim/bundle/
cat ${HOME}/.bash_history >> ${HOME}/.bash_eternal_history