]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
digrc: Add. Configuration file for dig.
authorSimon Ruderich <simon@ruderich.org>
Fri, 3 Jan 2014 02:50:05 +0000 (03:50 +0100)
committerSimon Ruderich <simon@ruderich.org>
Fri, 3 Jan 2014 02:50:05 +0000 (03:50 +0100)
.gitignore
digrc.in [new file with mode: 0644]
setup.sh

index 4be8b482828efed4f365eca737453620a222555c..d02c4f15c1ec46db089abde4c16c0ae11da259b3 100644 (file)
@@ -1,4 +1,5 @@
 # Ignore generated files.
 # Ignore generated files.
+/digrc
 /htoprc
 /screenrc
 /shell/aliases
 /htoprc
 /screenrc
 /shell/aliases
diff --git a/digrc.in b/digrc.in
new file mode 100644 (file)
index 0000000..c686042
--- /dev/null
+++ b/digrc.in
@@ -0,0 +1,23 @@
+# Dig configuration file.
+#
+# dig doesn't support comments in ~/.digrc. They must be stripped before using
+# this file.
+
+# Copyright (C) 2014  Simon Ruderich
+#
+# This file is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This file is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this file.  If not, see <http://www.gnu.org/licenses/>.
+
+
+# Use the search list or domain directive as defined in /etc/resolv.conf.
++search
index 14bc7a8d97fb2458c79af3bdec6223facd5dc244..aeaae961be71d88ebc09b987c1e0f892bc3f9aae 100755 (executable)
--- a/setup.sh
+++ b/setup.sh
@@ -234,6 +234,11 @@ fi
 # Htop overwrites the comments in its configuration file.
 generate htoprc .in cat
 
 # Htop overwrites the comments in its configuration file.
 generate htoprc .in cat
 
+if installed dig; then
+    # dig doesn't support any comments in digrc.
+    grep -v -E '^#' digrc.in >digrc
+fi
+
 
 # LINK SETUP
 
 
 # LINK SETUP
 
@@ -273,3 +278,6 @@ fi
 if test -d ~/.ssh && test -O ~/.ssh; then
     link ssh_config ~/.ssh/config
 fi
 if test -d ~/.ssh && test -O ~/.ssh; then
     link ssh_config ~/.ssh/config
 fi
+if installed dig; then
+    link digrc ~/.digrc
+fi