From ba59f208d14864dd3a443ed5c8d53d3b376af269 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Wed, 13 Jan 2016 22:43:53 +0500 Subject: Update zsh config. * Fix additional completion load. * New aliases. * Functions to query stocks. --- files/.zsh/rc/S50_functions | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'files/.zsh/rc/S50_functions') diff --git a/files/.zsh/rc/S50_functions b/files/.zsh/rc/S50_functions index a235839..7998441 100644 --- a/files/.zsh/rc/S50_functions +++ b/files/.zsh/rc/S50_functions @@ -6,4 +6,12 @@ ppgrep() { pgrep "$@" | xargs --no-run-if-empty ps fp } +stocks() { + curl -s 'http://download.finance.yahoo.com/d/quotes.csv?s='$1'&f=l1' +} + +xe() { + stocks "$1=x" +} + # vim: ft=zsh : -- cgit v1.2.3