-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Working rudimentary example version #2
Changes from 1 commit
bf9caf1
5593043
c2c372a
9cf079c
78765bb
7c9fd1d
034a947
f975f66
92cf55d
97b57e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/env bash | ||
|
||
## TT_PROJECTS - This is the root folder of your git-backed projects | ||
TT_PROJECTS=~/tmp | ||
|
||
## TT_GIT_BASE - This is the base URL of your git projects (will be used like $TT_GIT_BASE/project.git) | ||
[email protected]:meet-tarantino |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# variables | ||
TT_PROJECTS=${TT_PROJECTS:-~/tmp} | ||
TT_GIT_BASE=${TT_GIT_BASE:[email protected]:meet-tarantino} | ||
TT_IS_GLOBAL=$([ "$0" = "/usr/local/bin/tt" ] && echo true || echo false) | ||
TT_SHARE=$([ $TT_IS_GLOBAL = true ] && echo /usr/local/share/tarantino || dirname $0) | ||
TT_HOME=${TT_HOME:-~/.tt} | ||
|
@@ -57,6 +55,10 @@ main() { | |
esac | ||
fi | ||
|
||
TT_PROJECTS=${TT_PROJECTS:-~/tmp} | ||
TT_GIT_BASE=${TT_GIT_BASE:[email protected]:meet-tarantino} | ||
apply_workspace_vars # this may override the above defaults | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that I think of it, are you sure we need to do this explicitly? Part of our vision included allowing workspaces to define their own bash scripts to be automatically sourced so that additional commands could be added. (Think There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, not sure if lines 58/59 need to exist, it was more for back-compat for my other workspace that uses those lol There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Based on what's in master and #1, our intent was to allow workspaces to contain a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. interesting, yeah i remember that now, lets cross that bridge when we get to plugins :) |
||
|
||
run_sub_command tt $@ | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really cool. I suppose this would give you the option to both: