Easily open files and directories in TextMate.
This commit is contained in:
parent
2f1565e272
commit
db31957cd7
1 changed files with 5 additions and 1 deletions
|
@ -9,6 +9,10 @@ alias mr='mate CHANGELOG app config db lib public script spec test'
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
function tm() {
|
function tm() {
|
||||||
cd "$1" && mate .
|
if [[ -z "$1" ]]; then
|
||||||
|
mate .
|
||||||
|
else
|
||||||
|
( [[ -d "$1" ]] && cd "$1" && mate . )
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue