]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
tigrc: Unbind all commands which may change the repository.
authorSimon Ruderich <simon@ruderich.org>
Sat, 8 May 2010 08:36:18 +0000 (10:36 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 8 May 2010 08:36:18 +0000 (10:36 +0200)
This needs a version newer than 0.15 (it's a noop on older versions).

tigrc

diff --git a/tigrc b/tigrc
index 82b53b132a5810682f6b05b3667414a195628872..4c0980cfc8787356ea1d044f31355b38bcd957ed 100644 (file)
--- a/tigrc
+++ b/tigrc
@@ -22,6 +22,16 @@ bind generic * move-last-line
 # Close current view like in mutt.
 bind diff i view-close
 
+# Unbind commands which may change the repository. I use tig only as a viewer.
+bind generic u none
+bind generic ! none
+bind generic M none
+bind generic @ none
+bind generic e none
+bind generic G none
+bind generic C none
+bind generic i none
+
 
 # COLORS