-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.py
executable file
·37 lines (31 loc) · 1.64 KB
/
run.py
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
#!/usr/bin/env python3
def prompt(string):
input(string)
def package_installs():
for pack in ["git", "vim", "tmux", "zsh", "meld", "ripgrep"]:
prompt("Install {} (sudo apt-get install {})".format(pack, pack))
prompt("Install fd (sudo apt-get install fd-find / pacman -S fd")
def git_setup():
prompt("Copy over the gitconfig (cp .gitconfig ~/.gitconfig)")
def zsh_setup():
prompt('Install oh-my-zsh\n sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"')
prompt("Change the prompt to 'agnoster' (vim ~/.zshrc)")
prompt("Clone zsh-syntax-highlighting\n git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting")
prompt("Clone zsh-autosuggestions\n git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions")
prompt("Add 'git', 'wd', 'zsh-syntax-highlighting' and 'zsh-autosuggestions' to plugins (vim ~/.zshrc)")
def vim_setup():
prompt('Copy over .vimrc (cp .vimrc ~)')
prompt("""Install pathogen:
mkdir -p ~/.vim/autoload ~/.vim/bundle && \\
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim""")
prompt("""Install vim-airline:
git clone https://github.com/vim-airline/vim-airline ~/.vim/bundle/vim-airline""")
if __name__ == "__main__":
package_installs()
zsh_setup()
vim_setup()
prompt("Set colour scheme to solarized.")
prompt("Install powerline (TODO)")
prompt("Setup tmux (TODO)")
prompt("Create an SSH key (TODO)")
prompt("Add SSH key to GitHub (TODO)")