diff options
author | Matthieu Saulnier <fantom@fedoraproject.org> | 2017-06-14 01:51:13 +0200 |
---|---|---|
committer | Matthieu Saulnier <fantom@fedoraproject.org> | 2017-06-14 01:51:13 +0200 |
commit | 1b7a4141c42e7923e84312b8e5ceaf0da2a698cf (patch) | |
tree | 829f090889b009a47e88aef2f500dba4e2fbac3c | |
parent | 3c52b36c4c1218475d568b193af4c1a3a7229e82 (diff) | |
download | playbooks-ansible-1b7a4141c42e7923e84312b8e5ceaf0da2a698cf.tar.gz playbooks-ansible-1b7a4141c42e7923e84312b8e5ceaf0da2a698cf.tar.xz playbooks-ansible-1b7a4141c42e7923e84312b8e5ceaf0da2a698cf.zip |
add IP4 option to get ipv4 address when IP6 is default routage
-rw-r--r-- | roles/common/files/bashrc | 1 | ||||
-rw-r--r-- | roles/common/files/zshrc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/roles/common/files/bashrc b/roles/common/files/bashrc index 9fb69d2..54ae007 100644 --- a/roles/common/files/bashrc +++ b/roles/common/files/bashrc @@ -10,6 +10,7 @@ alias f='find . -iname' alias up='popd' alias pop='popd' alias myip='curl https://lancaster.casperlefantom.net:4433/ipclient.php' +alias myip4='curl -4 https://lancaster.casperlefantom.net:4433/ipclient.php' alias torip='torsocks curl https://lancaster.casperlefantom.net:4433/ipclient.php' alias beep='echo -e "\a"' alias screenoff='xset dpms force off' diff --git a/roles/common/files/zshrc b/roles/common/files/zshrc index 67a9e8d..8484607 100644 --- a/roles/common/files/zshrc +++ b/roles/common/files/zshrc @@ -29,6 +29,7 @@ alias f='find . -iname' alias up='popd' alias pop='popd' alias myip='curl https://lancaster.casperlefantom.net:4433/ipclient.php' +alias myip4='curl -4 https://lancaster.casperlefantom.net:4433/ipclient.php' alias torip='torsocks curl https://lancaster.casperlefantom.net:4433/ipclient.php' alias beep='echo -e "\a"' alias screenoff='xset dpms force off' |