bashrc & zshrc & recommends: remove the rot13 function. Better one is in bsdgames.

This commit is contained in:
Mika Suomalainen 2012-11-04 12:15:02 +02:00
parent 3c2b176769
commit 05096811da
3 changed files with 2 additions and 20 deletions

10
bashrc
View File

@ -377,16 +377,6 @@ geoiplookup $1
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j # 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}" ;} 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 # Down for everyone or just me? Copied from the ultimate bashrc http://goo.gl/qGK5j
function downforme() { function downforme() {
RED='\e[1;31m' RED='\e[1;31m'

View File

@ -16,3 +16,5 @@ if [ ! -f /usr/share/doc/popularity-contest/copyright ]
then 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." 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 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."; }

10
zshrc
View File

@ -326,16 +326,6 @@ geoiplookup $1
# Checks which package the command comes from. Copied from the ultimate bashrc http://goo.gl/qGK5j # 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}" ;} 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 # Down for everyone or just me? Copied from the ultimate bashrc http://goo.gl/qGK5j
function downforme() { function downforme() {
RED='\e[1;31m' RED='\e[1;31m'