dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit cf9a7d16ce04d15ede96eb2616c5f61028b22f22
parent 6282dfca9ca91c3e4f0bc1b1b06d07cf2fd42ed7
Author: Hayden Hamilton <hayden@haydenvh.com>
Date:   Sun,  1 Mar 2020 20:15:10 +0000

forgot to add tmux

Diffstat:
M.gitaddlist | 2+-
Ageneral/make.sh | 78++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+), 1 deletion(-)

diff --git a/.gitaddlist b/.gitaddlist @@ -62,6 +62,6 @@ git add .config/vimb/scripts.js git add .config/neomutt/neomuttrc git add .config/neomutt/colours git add .config/neomutt/sidebar -git add general/makefile +git add general/make.sh git rm --cache .config/vim/.netrwhist git add .galias diff --git a/general/make.sh b/general/make.sh @@ -0,0 +1,78 @@ +all(){ + imagestarbz + downloadstargz + documentstargz + musictarbz + videostargz + mailtargz + securitytargz + gamestarbz +} + +dirclean(){ + rm -rf `find -type d` +} + +imagestarbz(){ + tar cjvf images.tar.bz images +} +downloadstargz(){ + tar czvf downloads.tar.gz downloads +} +documentstargz(){ + tar czvf documents.tar.gz documents +} +musictarbz(){ + tar cjvf music.tar.bz music +} +videostarbz(){ + tar cjvf videos.tar.bz videos +} +mailtargz(){ + tar czvf mail.tar.gz mail +} +securitytargz(){ + tar czvf security.tar.gz security +} +gamestarbz(){ + tar czvf games.tar.bz games +} + +clean(){ + rm *.tar.*z +} + +extract(){ + tar xjvf images.tar.bz + tar xzvf downloads.tar.gz + tar xzvf documents.tar.gz + tar xjvf music.tar.bz + tar xjvf videos.tar.gz + tar xzvf mail.tar.gz + tar xzvf security.tar.gz + tar xjvf games.tar.gz +} + +link(){ + cd .. + ln -s general/images images + ln -s general/music music + ln -s general/videos videos + ln -s general/images/wallpapers .wallpapers + ln -s general/mail mail + ln general/security/pass work/pass + ln -s general/games/.openttd ./ +} + +unlink(){ + unlink ../images + unlink ../music + unlink ../videos + unlink ../.wallpapers + unlink ../mail +} + +for func in $(printf "$@") +do + $func +done