mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 20:59:23 +01:00
bashrc & zshrc & recommends: remove the rot13 function. Better one is in bsdgames.
This commit is contained in:
parent
3c2b176769
commit
05096811da
10
bashrc
10
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'
|
||||
|
@ -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."; }
|
10
zshrc
10
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'
|
||||
|
Loading…
Reference in New Issue
Block a user