install.sh (2915B)
1 #!/bin/bash 2 3 # http://stackoverflow.com/a/4785518 4 command -v curl >/dev/null 2>&1 || { echo "I require curl but it's not installed. Aborting." >&2; exit 1; } 5 command -v git >/dev/null 2>&1 || { echo "I require git but it's not installed. Aborting." >&2; exit 1; } 6 7 touch ~/-@ # http://unix.stackexchange.com/a/77868 8 9 mkdir -p ~/.cache/mutt_message_cachedir 10 11 mkdir -p ~/.config 12 13 mkdir -p ~/logs 14 mkdir -p ~/logs/rofi 15 mkdir -p ~/temp/{vim,mutt,lock} 16 mkdir -p ~/temp/vim/{temp,backup} 17 mkdir -p ~/temp/sent_materialized 18 19 mkdir -p ~/useful/papers 20 21 mkdir -p ~/apps 22 cd ~/apps 23 git clone 'https://github.com/clvv/fasd' 24 ln -s ~/apps/fasd/fasd ~/bin 25 git clone 'https://github.com/kragen/xcompose' 26 ln -s ~/apps/xcompose/dotXCompose ~/.XCompose 27 28 git clone 'https://github.com/quite/urlpicker' 29 sudo mkdir -p /usr/lib/urxvt/perl 30 sudo cp ~/apps/urlpicker/url-picker /usr/lib/urxvt/perl/url-picker 31 sudo chmod -R og+rx /usr/lib/urxvt 32 33 cd ~/config 34 mkdir -p ~/.elinks 35 mkdir -p ~/Mail_inbox 36 mkdir -p ~/Mail_inbox/draft_tmp/{cur,new,tmp} 37 mkdir -p ~/.i3 38 mkdir -p ~/.w3m 39 ls ~/config/ | 40 grep -vE "(README|TODO|elinks|mutt|vim|zsh|subversion|i3|weechat|lbdb|w3m|rofi)" | 41 while read l; do ln -s ~/config/$l ~/.$l; done 42 mkdir -p ~/.mutt 43 for a in ~/config/mutt/*; do ln -s $a ~/.mutt/; done 44 ln -s ~/config/elinks ~/.elinks/elinks.conf 45 ln -s ~/config/w3m ~/.w3m/config 46 47 mkdir -p ~/.config/rofi 48 ln -s ~/config/rofi ~/.config/rofi/config.rasi 49 50 for app in vim zsh 51 do 52 mkdir -p ~/.$app 53 for a in ~/config/$app/* 54 do 55 ln -s $a ~/.$app/ 56 done 57 done 58 ln -s ~/.vim/vimrc ~/.vimrc 59 ln -s ~/.zsh/zshrc ~/.zshrc 60 touch ~/.zsh/ps1 61 62 ln -s ~/config/gtk/gtkrc-2.0 ~/.gtkrc-2.0 63 ln -s ~/config/gtk/gtkrc-3.0 ~/.gtkrc-3.0 64 65 mkdir -p ~/.gnupg 66 ln -s ~/config/gnupg/gpg-agent.conf ~/.gnupg/gpg-agent.conf 67 ln -s ~/config/gnupg/gpg.conf ~/.gnupg/gpg.conf 68 69 ln -s ~/config/i3/config ~/.i3/config 70 ln -s ~/config/sway ~/.config/sway 71 ln -s ~/config/mpv ~/.config/mpv 72 ln -s ~/config/latexmk ~/.latexmkrc 73 ln -s ~/config/abcde ~/.abcde.conf 74 ln -s ~/config/reportbugrc ~/.reportbugrc 75 ln -s ~/config/xpdf ~/.xpdfrc 76 ln -s ~/config/tig ~/.tigrc 77 touch ~/.hushlogin 78 ln -s ~/config/i3/status ~/.i3status.conf 79 ln -s ~/config/lbdb ~/.lbdbrc 80 mkdir -p ~/.vim/autoload ~/.vim/bundle 81 curl -LSso ~/.vim/autoload/pathogen.vim 'https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim' 82 cd ~/.vim/bundle 83 git clone 'https://github.com/vim-scripts/vimwiki' 84 git clone 'https://github.com/ervandew/supertab' 85 touch ~/.vim/perso 86 mkdir -p ~/scratch 87 mkdir -p ~/.subversion 88 for a in config servers 89 do 90 ln -s ~/config/subversion/$a ~/.subversion/$a 91 done 92 chmod -R 700 ~/.gnupg 93 mkdir -p ~/.config 94 95 mkdir -p ~/.local/share/applications/ 96 ln -s ~/config/mimeapps.list ~/.config 97 ln -s ~/config/mimeapps.list ~/.local/share/applications/defaults.list 98 ln -s ~/config/firefox/sandboxed_browser.desktop ~/.local/share/applications/ 99 ln -s ~/config/xkb ~/.xkb 100 101 mkdir -p ~/git 102 ln -s ~/git ~/git_wc