Created
September 7, 2011 00:42
-
-
Save makevoid/1199432 to your computer and use it in GitHub Desktop.
A function in my .profile to help me remember to learn vim :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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