2011-08-31 05:16:15 +02:00
|
|
|
# Aliases
|
2011-05-19 16:33:29 +02:00
|
|
|
alias et='mate .'
|
|
|
|
alias ett='mate app config lib db public spec test Rakefile Capfile Todo'
|
2011-08-31 05:16:15 +02:00
|
|
|
alias etp='mate app config features lib db public spec test Gemfile Rakefile Capfile Todo'
|
2011-05-19 16:33:29 +02:00
|
|
|
alias etts='mate app config lib db public script spec test vendor/plugins vendor/gems Rakefile Capfile Todo'
|
2010-06-03 21:03:26 +02:00
|
|
|
|
2011-08-31 05:16:15 +02:00
|
|
|
# Edit Ruby app in TextMate.
|
2010-06-03 21:03:26 +02:00
|
|
|
alias mr='mate CHANGELOG app config db lib public script spec test'
|
|
|
|
|
2011-08-31 05:16:15 +02:00
|
|
|
# Functions
|
2010-06-03 21:03:26 +02:00
|
|
|
function tm() {
|
2011-12-28 17:42:41 +01:00
|
|
|
if [[ -z "$1" ]]; then
|
|
|
|
mate .
|
|
|
|
else
|
|
|
|
( [[ -d "$1" ]] && cd "$1" && mate . )
|
|
|
|
fi
|
2010-06-03 21:03:26 +02:00
|
|
|
}
|
2011-08-31 05:16:15 +02:00
|
|
|
|