diff --git a/bashrc b/bashrc index 6d9d9afd..34fe3ad3 100755 --- a/bashrc +++ b/bashrc @@ -377,16 +377,6 @@ geoiplookup $1 # Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j function cmdpkg() { PACKAGE=$(dpkg -S $(which $1) | cut -d':' -f1); echo "[${PACKAGE}]"; dpkg -s "${PACKAGE}" ;} -# ROT13, copied from the ultimate bashrc http://goo.gl/qGK5j -function rot13() -{ - if [ $# -lt 1 ] || [ $# -gt 1 ]; then - echo "Seriously? You don't know what rot13 does?" - else - echo $@ | tr A-Za-z N-ZA-Mn-za-m - fi -} - # Down for everyone or just me? Copied from the ultimate bashrc http://goo.gl/qGK5j function downforme() { RED='\e[1;31m' diff --git a/recommends b/recommends index a920c1f2..55752e31 100755 --- a/recommends +++ b/recommends @@ -16,3 +16,5 @@ if [ ! -f /usr/share/doc/popularity-contest/copyright ] then echo "You might want to install popularity-contest. See http://popcon.debian.org/" && echo "If you aren't on Linux you can ignore this." fi + +command -v \rot13 >/dev/null 2>&1 || { echo >&2 "rot13 was removed from bashrc & zshrc, because it's provided by bsdgames. You might want to install it."; } \ No newline at end of file diff --git a/zshrc b/zshrc index c770173d..6acebf6e 100755 --- a/zshrc +++ b/zshrc @@ -326,16 +326,6 @@ geoiplookup $1 # Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j function cmdpkg() { PACKAGE=$(dpkg -S $(which $1) | cut -d':' -f1); echo "[${PACKAGE}]"; dpkg -s "${PACKAGE}" ;} -# ROT13, copied from the ultimate bashrc http://goo.gl/qGK5j -function rot13() -{ - if [ $# -lt 1 ] || [ $# -gt 1 ]; then - echo "Seriously? You don't know what rot13 does?" - else - echo $@ | tr A-Za-z N-ZA-Mn-za-m - fi -} - # Down for everyone or just me? Copied from the ultimate bashrc http://goo.gl/qGK5j function downforme() { RED='\e[1;31m'