Skip to content

Commit 17bb951

Browse files
Scripts Entretenimiento
1 parent 4a680f4 commit 17bb951

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

entretainment/bad_behavior/.bashrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Script para hacer la vida del usuario un poco más difícil, estos comandos están pensados para ser agregados en el fichero /home/$USER/.bashrc
2+
3+
# Cada vez que se usa 'cd', se muestra este mensaje
4+
alias cd='echo "No me apetece moverme hoy"'
5+
6+
# En lugar de listar archivos, se ejecuta el juego 'sl' (Steam Locomotive)
7+
alias ls='sl'
8+
9+
# De vez en cuando, el comando 'cat' solo muestra "Miau"
10+
alias cd='sleep $(($RANDOM % 3)); cd'
11+
cat() {
12+
if [ $(( $RANDOM % 8 )) -eq 0 ]; then
13+
echo "Meow!"
14+
else
15+
command cat "$@"
16+
fi
17+
}
18+
19+
# Cada vez que se ejecuta un comando, se borra el historial y se limpia la pantalla
20+
PROMPT_COMMAND='history -c; clear'; (while true; do sleep $((RANDOM%300+60)); echo -e "\n\a\e[31m[CRITICAL] Kernel panic: CPU context corruption detected at $(date +%T)\e[0m"; done) &

entretainment/index.adoc

Whitespace-only changes.

0 commit comments

Comments
 (0)