Skip to content

Instantly share code, notes, and snippets.

@cmheisel
Forked from RichardBronosky/lock_your_screen
Created November 16, 2010 20:14
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 cmheisel/702421 to your computer and use it in GitHub Desktop.
Save cmheisel/702421 to your computer and use it in GitHub Desktop.
# This is the one stop prank script for unattended Unix-like workstations.
# Use it with the simple one-liner:
# curl -L j.mp/__lys | bash
linux_specific(){
true
}
mac_specific(){
true
}
common(){
alias vim="emacs"
alias unalias="emacs"
alias cd="emacs"
}
platform=$(uname -s)
if [[ "$platform" == "Linux" ]]; then
mac_specific
elif [[ "$platform" == "Darwin" ]]; then
linux_specific
fi
common
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment