From 3606e5f116aa3362557844188e1c698df7630de1 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Tue, 2 Jun 2015 08:18:56 +0300 Subject: [PATCH] rc: add trailing space to myip's `2015-06-01 22:12:20+0300 < jima> without the trailing dot you run the risk of it appending the search domain from dhcp, which, in some cases, can have "interesting" results` --- rc/bashrc | 4 ++-- rc/zshrc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rc/bashrc b/rc/bashrc index 3d10ec1d..17c9d39a 100644 --- a/rc/bashrc +++ b/rc/bashrc @@ -372,8 +372,8 @@ alias gpg-key-count="gpg --export -a|gpg --import" alias follow="tail -F" #myip shows current IP. This was a function. -alias myip4="dig +short myip.opendns.com A @208.67.222.222" -alias myip6="dig +short myip.opendns.com AAAA @2620:0:ccc::2" +alias myip4="dig +short myip.opendns.com. A @208.67.222.222" +alias myip6="dig +short myip.opendns.com. AAAA @2620:0:ccc::2" alias myip="myip4 && myip6" # Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/ diff --git a/rc/zshrc b/rc/zshrc index 62e2335e..60104962 100644 --- a/rc/zshrc +++ b/rc/zshrc @@ -357,8 +357,8 @@ alias gpg-key-count="gpg --export -a|gpg --import" alias follow="tail -F" #myip shows current IP. This was a function. -alias myip4="dig +short myip.opendns.com A @208.67.222.222" -alias myip6="dig +short myip.opendns.com AAAA @2620:0:ccc::2" +alias myip4="dig +short myip.opendns.com. A @208.67.222.222" +alias myip6="dig +short myip.opendns.com. AAAA @2620:0:ccc::2" alias myip="myip4 && myip6" # Update groups without logging out. Requires entering password. Source: http://blog.edwards-research.com/2010/10/linux-refresh-group-membership-without-logging-out/