Skip to content

Commit

Permalink
Switching from TextMate (mate) to Sublime Text 2 (subl).
Browse files Browse the repository at this point in the history
  • Loading branch information
cowboy committed Mar 10, 2012
1 parent 3560e30 commit 16d3d8a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
File renamed without changes.
1 change: 1 addition & 0 deletions bin/subl
6 changes: 3 additions & 3 deletions source/50_editor.sh
Original file line number Original file line Diff line number Diff line change
@@ -1,9 +1,9 @@
# Editing # Editing


if [[ ! "$SSH_TTY" && "$OSTYPE" =~ ^darwin ]]; then if [[ ! "$SSH_TTY" && "$OSTYPE" =~ ^darwin ]]; then
export EDITOR='mate -w' export EDITOR='subl -w'
export LESSEDIT='mate -l %lm %f' export LESSEDIT='subl %f'
alias q='mate' alias q='subl'
else else
export EDITOR=$(type nano pico vi vim 2>/dev/null | sed 's/ .*$//;q') export EDITOR=$(type nano pico vi vim 2>/dev/null | sed 's/ .*$//;q')
alias q="$EDITOR -w -z" alias q="$EDITOR -w -z"
Expand Down

0 comments on commit 16d3d8a

Please sign in to comment.