Create a gist now

Instantly share code, notes, and snippets.

A function in my .profile to help me remember to learn vim :)
function editor() { # randomly chooses an editor for you :)
[[ `expr $RANDOM % 2` == 0 ]] && editor="vim" || editor="mate"
$editor $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment