summaryrefslogtreecommitdiff
path: root/.zsh
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
parent01409c293039b343fd083920b92d355fec0987ed (diff)
Add editor and pager config env vars
Diffstat (limited to '.zsh')
-rwxr-xr-x.zsh/func/baseconv2
-rw-r--r--.zsh/zshenv/20_editor13
-rw-r--r--.zsh/zshenv/20_pager15
3 files changed, 29 insertions, 1 deletions
diff --git a/.zsh/func/baseconv b/.zsh/func/baseconv
index 05e7d8d..3c97468 100755
--- a/.zsh/func/baseconv
+++ b/.zsh/func/baseconv
@@ -4,7 +4,7 @@
#
# zsh-based conversion between numeric bases
#
-# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
# Released under the terms of the Artistic Licence 2.0
#
# Source repository: git://git.madduck.net/etc/zsh.git
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