#! /bin/zsh # # this file: # http://user.it.uu.se/~embe8573/conf/.zsh/remote-mic # https://dataswamp.org/~incal/conf/.zsh/remote-mic # # (find-file "/sunos-ssh:embe8573@polhem.it.uu.se:.bash_profile") MU='embe8573' MDOM='it.uu.se' MHOST="polhem.$MDOM" MLOGIN="$MU@$MHOST" WEBPAGE="http://user.$MDOM/~$MU" mic-debug () { ssh \ -l $MU \ -o ControlMaster=auto \ -o ControlPath='tramp.%C' \ -o ControlPersist=no \ -e none \ $MHOST } get-ebc () { echo $@ | tr ' ' '\n' | parallel get $WEBPAGE/{} } alias ebc-get=get-ebc mic () { ssh -o ServerAliveInterval=120 $MLOGIN } alias sun=mic mic-get () { rsync -aLv $MLOGIN:/home/$MU/public_html/$1 . } mcp () { rsync -aLv --exclude='*.mp4' --exclude='*.jpg' --exclude='*.png' --exclude='*/blog/*' $@ $MLOGIN: } mic-cos () { mcp ~/public_html ~/.mailrc echo "MIC done" } alias cos-mic=mic-cos