From 7d0cb13a300d4752b107d0a08e764978a5c4f6de Mon Sep 17 00:00:00 2001 From: Dan Head Date: Tue, 26 Sep 2017 16:45:59 +0100 Subject: [PATCH] Listen + rsync aliases --- zsh/aliases.zsh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 227e258..5ef2458 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -1,6 +1,5 @@ alias zshconfig="vim ~/.zshrc" alias wttr="curl wttr.in/~Brentwood+UK" -alias phoenixfm="mpv 'http://hyades.shoutca.st:8555/stream'" alias cl="find . -type f -name '$1' | xargs wc -l" alias fif="find . -type f -print | xargs grep '$1'" alias hcf="sudo shutdown -h now" @@ -53,4 +52,17 @@ function wipetmpfs() { echo "e.g. killtmpfs ~/temp" fi } - +function listen() { + case "$1" in + phoenixfm) + mplayer 'http://hyades.shoutca.st:8555/stream' + ;; + talksport) + mplayer 'https://radio.talksport.com/stream?awparams=platform:ts-web;&type=.flv&amsparams=playerid:ts-web;' + ;; + esac +} +alias rsync-copy="rsync -avz --progress -h" +alias rsync-move="rsync -avz --progress -h --remove-source-files" +alias rsync-update="rsync -avzu --progress -h" +alias rsync-synchronize="rsync -avzu --delete --progress -h"