textmate.plugin.zsh 723 Bytes
Newer Older
1
alias et='mate .'
2
alias ett='mate Gemfile app config features lib db public spec test Rakefile Capfile Todo'
3
4
alias etp='mate app config lib db public spec test vendor/plugins vendor/gems Rakefile Capfile Todo'
alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo'
5

Andrew Hodges's avatar
Cleanup    
Andrew Hodges committed
6
# Edit Ruby app in TextMate
7
8
alias mr='mate CHANGELOG app config db lib public script spec test'

9
10
11
# If the tm command is called without an argument, open TextMate in the current directory
# If tm is passed a directory, cd to it and open it in TextMate
# If tm is passed a file, open it in TextMate
12
function tm() {
13
14
15
16
17
18
19
20
	if [[ -z $1 ]]; then
		mate .
	else
		mate $1
		if [[ -d $1 ]]; then
			cd $1
		fi
	fi
21
}