#! /bin/zsh # # this file: # http://user.it.uu.se/~embe8573/conf/.zsh/swamp # https://dataswamp.org/~incal/conf/.zsh/swamp # # (find-file "/-:incal@srv.dataswamp.org:.zshrc") # # (find-file "/-:incal@srv.dataswamp.org:piles") # # (find-file "/-:incal@srv.dataswamp.org:public_html/bot/sth.py") # # (find-file "/-:incal@srv.dataswamp.org:public_html/bot/scripts/elem") # (find-file "/-:incal@srv.dataswamp.org:public_html/bot/scripts/hist") # (find-file "/-:incal@srv.dataswamp.org:public_html/bot/scripts/junior") # (find-file "/-:incal@srv.dataswamp.org:public_html/bot/scripts/senior") # (find-file "/-:incal@srv.dataswamp.org:public_html/bot/scripts/stats") # (find-file "/-:incal@srv.dataswamp.org:public_html/bot/scripts/url2title") # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/index.html") # https://dataswamp.org/~incal/blog/index.html # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/tree-house.html") # https://dataswamp.org/~incal/blog/tree-house/tree-house.html # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/tree-house-pulley.html") # https://dataswamp.org/~incal/blog/tree-house/tree-house-pulley.html # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/tree-house/tree-house-rooftop.html") # https://dataswamp.org/~incal/blog/tree-house/tree-house-rooftop.html # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/climbing-gear/climbing-gear.html") # https://dataswamp.org/~incal/blog/climbing-gear/climbing-gear.html # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/box-10/top-10-modern-boxers.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/box-10/marco-antonio-barrera.html") # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/meta/about.html") # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/meta/new.html") # # (find-file "/-:incal@srv.dataswamp.org:public_html/blog/global.css") export swamp_system=dataswamp.org export swamp_dir=~/swamp # -a, --archive, archive mode, equals -rlptgoD ;) # -L, --copy-links, transform symlink into referent file/dir export rsync_opts=-aL # ssh swamp () { # [[ $OH_NO ]] && echo "oh, no!" && return clean ssh -o ServerAliveInterval=120 $swamp_system } # get swamp-get () { local from=$1 local to=${2:-$swamp_dir} rsync $rsync_opts $swamp_system:$from $to } # put swamp-cp () { rsync $rsync_opts $@ $swamp_system: } # more rsync swamp-cp-hp () { swamp-cp-to-hp ~/public_html/ } swamp-cp-to-hp () { rsync $rsync_opts $@ ${swamp_system}:public_html/ } swamp-cp-emacs () { rsync $rsync_opts ~/.emacs-swamp ${swamp_system}:.emacs rsync $rsync_opts ~/.emacs.d/emacs-init-swamp/ ${swamp_system}:.emacs.d/emacs-init/ } swamp-cos () { swamp-cp ${swamp_dir}/.zshenv ${swamp_dir}/.tmux.conf ~/.mailrc swamp-cp-hp swamp-cp-emacs swamp-cp-to-hp ${swamp_dir}/swamp-imgs swamp-cp ${swamp_dir}/swamp-big echo "swamp done" } alias cos-swamp=swamp-cos