diff --git a/one-time-stuff/basic-settings.sh b/one-time-stuff/basic-settings.sh index c78b41a..dc32b24 100755 --- a/one-time-stuff/basic-settings.sh +++ b/one-time-stuff/basic-settings.sh @@ -118,20 +118,8 @@ case $add_style in ( cat << 'STYLE' -# ABS prompt color dependent on hostname "purple", "orange", or neither -my_host="$HOSTNAME" -my_host="${my_host/orange/🍊}" -my_host="${my_host/oracle/🔮}" -my_host="${my_host/purple/💜}" -my_host="${my_host/pi/🥧}" -my_host="${my_host/stash/🎒♾}" -if [[ $HOSTNAME == *purple* ]] ; then - PS1="\[\e[32m\]\u\[\e[m\]@\[\e[35m\]$my_host\[\e[m\]:\[\e[36m\]\w\[\e[m\]\\$ " -elif [[ $HOSTNAME == *orange* ]] ; then - PS1="\[\e[32m\]\u\[\e[m\]@\[\e[31m\]$my_host\[\e[m\]:\[\e[36m\]\w\[\e[m\]\\$ " -else - PS1="\[\e[32m\]\u\[\e[m\]@\[\e[33m\]$my_host\[\e[m\]:\[\e[36m\]\w\[\e[m\]\\$ " -fi +# ABS prompt color +PS1="\[\e[32m\]\u\[\e[m\]@\[\e[36m\]\h\[\e[m\]:\[\e[33m\]\w\[\e[m\]\\$ " STYLE ) >> "$HOME/.bashrc" diff --git a/one-time-stuff/install-software.sh b/one-time-stuff/install-software.sh index 699c286..d74c01e 100755 --- a/one-time-stuff/install-software.sh +++ b/one-time-stuff/install-software.sh @@ -53,7 +53,7 @@ function install_collection () { # ---------------------------------------------------------- echo "----- Install core utilities: fail2ban, git, jq.. ---" -install_collection 'core utilities' fail2ban git htop jq grep gzip net-tools goaccess +install_collection 'core utilities' fail2ban git htop jq grep gzip net-tools goaccess dnsutils bash-completion cron echo "----- Install extra utilities: ncdu, zip, iftop -----" install_collection 'extra utilities' ncdu zip unzip iftop diff --git a/public-ip.sh b/public-ip.sh index e2f8e78..e9e4db5 100755 --- a/public-ip.sh +++ b/public-ip.sh @@ -1,4 +1,5 @@ #!/bin/bash -dig +short ANY myip.opendns.com @resolver1.opendns.com +dig +short A myip.opendns.com @resolver1.opendns.com +dig +short AAAA myip.opendns.com @resolver1.opendns.com