Skip to content

Instantly share code, notes, and snippets.

@erdnaxeli
Last active August 29, 2015 14:11
Show Gist options
  • Save erdnaxeli/4d321ee811497dd22735 to your computer and use it in GitHub Desktop.
Save erdnaxeli/4d321ee811497dd22735 to your computer and use it in GitHub Desktop.
#!/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