-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·46 lines (38 loc) · 1.18 KB
/
deploy.sh
File metadata and controls
executable file
·46 lines (38 loc) · 1.18 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
#!/usr/bin/env bash
set -euo pipefail
NAME=vla1-5959.search.yandex.net
NAME=bastinda.yandex.ru
NAME=zabava.search.yandex.net
NAME="keyboard-dev2.search.yandex.net"
function run() {
com=$1
#ssh -t ${NAME} "${com}"
eval ${com}
}
function copy() {
from=dotfiles/$1
to=$2
#scp ${from} ${NAME}:${to}
cp ${from} ${to}
}
# zsh
#
run 'curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh -'
run 'sed -i "s|ZSH_THEME=\"robbyrussell\"|ZSH_THEME=\"bureau\"|g" ~/.zshrc'
run 'git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install'
run 'git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions'
copy functions.sh ~/.functions
copy vimrc ~/.vimrc
copy tmux.conf ~/.tmux.conf
# vim
#
run "git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim"
# tmux
#
run "git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm"
# Miscellaneous
#
run 'echo -e "\nsource ~/.functions\n" >> ~/.zshrc'
run 'echo -e "DISABLE_AUTO_TITLE=true\nunsetopt share_history" >>~/.zshrc'
run 'echo -e "stty -ixon" >>~/.bashrc'
run 'echo -e "exec zsh" >>~/.bashrc'