Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add some suffix aliases

  • Loading branch information...
commit 73c601a4960463d7e8011091c2735860cdf94a70 1 parent 119f0b3
@ryanfb authored
Showing with 15 additions and 0 deletions.
  1. +15 −0 05_editor
View
15 05_editor
@@ -10,3 +10,18 @@ if [[ -x `which mate` && $(not_run_from_ssh) = 1 ]]; then
else
EDITOR=vi
fi
+
+# Set EDITOR as default for plaintext stuff
+for s in txt c cc cxx cpp; do
+ alias -s $s=$EDITOR
+done
+
+# Abuse the "open" command on OS X
+if [[ $OSTYPE[1,6] == "darwin" ]]; then
+ for s in mp3 wav aac \
+ avi mp4 m4v mov qt mpg mpeg \
+ jpg png psd bmp gif tif tiff \
+ ps pdf html dmg; do
+ alias -s $s=open
+ done
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.