-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·49 lines (41 loc) · 1.65 KB
/
install.sh
File metadata and controls
executable file
·49 lines (41 loc) · 1.65 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
set -e
rootdir=$(dirname $0)
copy() { cp -r --force "$rootdir/$1" "$2"; }
mkdir -p "$HOME/.bashrc.d"
mkdir -p "$HOME/.local/bin"
mkdir -p "$HOME/.gdb"
mkdir -p "$(python -m site --user-site)"
copy "$rootdir/vimrc" "$HOME/.vimrc"
copy "$rootdir/zshrc" "$HOME/.zshrc"
copy "$rootdir/vim" "$HOME/.vim"
copy "$rootdir/gitconfig" "$HOME/.gitconfig"
copy "$rootdir/gitignore" "$HOME/.config"
copy "$rootdir/Xdefaults" "$HOME/.Xdefaults"
copy "$rootdir/bash-preexec/bash-preexec.sh" "$HOME/.bashrc.d/"
copy "$rootdir/bashrc" "$HOME/.bashrc.d/"
copy "$rootdir/ps1" "$HOME/.bashrc.d/"
copy "$rootdir/alias" "$HOME/.bashrc.d/"
copy "$rootdir/tmux.conf" "$HOME/.tmux.conf"
copy "$rootdir/bin/dnfproxy" "$HOME/.local/bin"
copy "$rootdir/bin/git-colog" "$HOME/.local/bin"
copy "$rootdir/bin/git-gerritlog" "$HOME/.local/bin"
copy "$rootdir/bin/xfce4-switch-mode" "$HOME/.local/bin"
copy "$rootdir/gerrit-helpers/gerritlog.py" "$HOME/.local/bin/gerritlog"
copy "$rootdir/gerrit-helpers/gerrithelpers" "$(python -m site --user-site)"
copy "$rootdir/gdbinit" "$HOME/.gdbinit"
copy "$rootdir/queue-gdbhelpers/queue.py" "$HOME/.gdb"
[[ ! -e "$HOME/.bashrc" ]] && cat > "$HOME/.bashrc" <<- EOF
for _rc in \$HOME/.bashrc.d/*; do
[[ -f "\$_rc" ]] && source "\$_rc"
done
unset _rc
EOF
if [ ! -e ~/.vim/bundle ]; then
mkdir ~/.vim/bundle
git clone https://github.com/VundleVim/Vundle.vim ~/.vim/bundle/Vundle.vim
fi
plugvimdir=~/.vim/autoload/plug.vim
plugvimsite=https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
[[ ! -e "$plugvimdir" ]] && curl --create-dirs -fLo "$plugvimdir" "$plugvimsite"
vim +PluginInstall +PlugInstall +qall