Tuesday, March 25, 2014

fun with lsd

so i fat-finger things from time to time. sometimes i type lsd as opposed to ls. to give myself a chuckle (and to figure out if i've actually configured a box), i put the following in /usr/local/bin:
echo -e "did you say \e[5mlsd\e[0m?"     
alias ls='ls --color=auto'

-e means hey respect those escape codes.
\e[5m is flashing text
\e[0m is please revert to normal
Post a Comment