summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2014-09-23 18:10:10 +0200
committerJan Pokorný <jpokorny@redhat.com>2014-09-23 18:10:10 +0200
commit4475705dd06fad66611d23360a9014e1c4110a8f (patch)
tree4f7b645270cb8311b4cdc07180a33c583379cfdc
parentc275b36831169e285f223de8b6ba2cf940c36ca9 (diff)
downloaddotfiles-4475705dd06fad66611d23360a9014e1c4110a8f.zip
dotfiles-4475705dd06fad66611d23360a9014e1c4110a8f.tar.gz
dotfiles-4475705dd06fad66611d23360a9014e1c4110a8f.tar.xz
Bash: add .bashrc-python for some Python-related functions
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
-rw-r--r--.bashrc-python10
1 files changed, 10 insertions, 0 deletions
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
+}