From 4475705dd06fad66611d23360a9014e1c4110a8f Mon Sep 17 00:00:00 2001 From: Jan Pokorný Date: Tue, 23 Sep 2014 18:10:10 +0200 Subject: Bash: add .bashrc-python for some Python-related functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Pokorný --- .bashrc-python | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .bashrc-python diff --git a/.bashrc-python b/.bashrc-python new file mode 100644 index 0000000..dc6f6a6 --- /dev/null +++ b/.bashrc-python @@ -0,0 +1,10 @@ +# .bashrc-python + +function pep () { + rst2html "${HOME}/wrkspc/goss-text/peps/pep-$(printf '%04d' "$1").txt" \ + | elinks -dump -dump-color-mode 1 \ + -eval 'set document.colors.text = "darkgreen"' \ + -eval 'set document.colors.increase_contrast = 0' \ + -eval 'set document.colors.ensure_contrast = 0' \ + | less +} -- cgit