summaryrefslogtreecommitdiff
path: root/.zsh/zshenv
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2010-03-10 10:14:17 +0100
committerTobias Klauser <klto@zhaw.ch>2010-03-10 10:14:17 +0100
commite14c3c7a7a3c91b25deb74249c5195c9e266f6c3 (patch)
treea2ab4c2be0174771bb54cf73007102718271be48 /.zsh/zshenv
parent01409c293039b343fd083920b92d355fec0987ed (diff)
Add editor and pager config env vars
Diffstat (limited to '.zsh/zshenv')
-rw-r--r--.zsh/zshenv/20_editor13
-rw-r--r--.zsh/zshenv/20_pager15
2 files changed, 28 insertions, 0 deletions
diff --git a/.zsh/zshenv/20_editor b/.zsh/zshenv/20_editor
new file mode 100644
index 0000000..59000ca
--- /dev/null
+++ b/.zsh/zshenv/20_editor
@@ -0,0 +1,13 @@
+# zshenv/20_editor
+#
+# set editor variables
+#
+# Copyright © 2010 Tobias Klauser <tklauser@distanz.ch>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: git://git.distanz.ch/dotfiles/zsh.git
+
+export EDITOR='vim'
+export VISUAL=$EDITOR
+
+# vim:ft=zsh
diff --git a/.zsh/zshenv/20_pager b/.zsh/zshenv/20_pager
new file mode 100644
index 0000000..8f58d11
--- /dev/null
+++ b/.zsh/zshenv/20_pager
@@ -0,0 +1,15 @@
+# zshenv/20_pager
+#
+# set pager variables
+#
+# Copyright © 2010 Tobias Klauser <tklauser@distanz.ch>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: git://git.distanz.ch/dotfiles/zsh.git
+
+export PAGER='less'
+
+# to view some binary files in less
+export LESSOPEN="| /usr/bin/lesspipe %s"
+
+# vim:ft=zsh