From: Simon Ruderich Date: Fri, 3 Jan 2014 02:50:05 +0000 (+0100) Subject: digrc: Add. Configuration file for dig. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=c6a90ed192e77095e982c5c7f4cfc63f89271574;p=config%2Fdotfiles.git digrc: Add. Configuration file for dig. --- diff --git a/.gitignore b/.gitignore index 4be8b48..d02c4f1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ # Ignore generated files. +/digrc /htoprc /screenrc /shell/aliases diff --git a/digrc.in b/digrc.in new file mode 100644 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 . + + +# Use the search list or domain directive as defined in /etc/resolv.conf. ++search diff --git a/setup.sh b/setup.sh index 14bc7a8..aeaae96 100755 --- a/setup.sh +++ b/setup.sh @@ -234,6 +234,11 @@ fi # 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 @@ -273,3 +278,6 @@ fi if test -d ~/.ssh && test -O ~/.ssh; then link ssh_config ~/.ssh/config fi +if installed dig; then + link digrc ~/.digrc +fi