Skip to content

Instantly share code, notes, and snippets.

@SyntaxColoring
Last active December 16, 2015 15:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SyntaxColoring/5460142 to your computer and use it in GitHub Desktop.
Save SyntaxColoring/5460142 to your computer and use it in GitHub Desktop.
Terminal personalization.
# Enable ls colors by default.
alias ls="ls -G"
# For convenience. Changes the current directory and immediately displays its contents.
cdls() { cd "$@" && ls; }
# Use Shared as the default working directory.
cd /Users/Shared
# For the hell of it. Print a randomly-colored Aperture Science logo on login.
echo -en "\033[3$(Digit=$RANDOM; let Digit=Digit%7+1; echo $Digit)m"
echo -e '
.,-:;//;:=,
. :H@@@MM@M#H/.,+%;,
,/X+ +M@@M@MM%=,-%HMMM@X/,
-+@MM; $M@@MH+-,;XMMMM@MMMM@+-
;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
,%MM@@MH ,@%= .---=-=:=,.
=@#@@@MX ., -%HX$$%%%+;
=-./@M@M$ .;@MMMM@MM:
X@/ -$MM/ .+MM@@@M$
,@M@H: :@: . =X#@@@@-
,@@@MMX, . /H- ;@M@M=
.H@@@@M@+, %MM+..%#$.
/MMMM@MMH/. XM@MH; =;
/%+%$XHH@$= , .H@@@@MX,
.=--------. -%H.,@@@@@MX,
.%MM@@@HHHXX$$$%+= .:$MMX =M@@MM%.
=XMMM@MM@MM#H;,-+HMM@M+ /MMMX=
=%@M@M#@$-.=$@MM@@@M; %M%=
,:+$+-,/H#MMMMMMM@= =,
=++%%%%+/:-.
\033[0m
Welcome back.\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment