-
-
Save erdnaxeli/4d321ee811497dd22735 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function printDotted() { | |
echo -n $@ | |
for i in $(seq $[$RANDOM % 10]); do | |
echo -n '.' | |
sleep 0.1 | |
done | |
echo ' OK' | |
} | |
# real work | |
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then | |
echo "Usage: source $0" | |
exit | |
fi | |
set +o history | |
export PROMPT_COMMAND=clear | |
export PS1="nsh> " | |
stty -echo | |
# real bull shit | |
printDotted "disabling history (Ninjaaa!)" | |
printDotted "hide commands (Ninjaaa!)" | |
printDotted reconfigure prompt | |
printDotted enter Ninja Shell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment