Skip to content
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

Add load command #80

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add load command #80

wants to merge 6 commits into from

Conversation

ryansch
Copy link

@ryansch ryansch commented Mar 20, 2018

Adds the ability to load a desk into the current shell. Useful for things like tmux where we've already started a new shell.

Usage: eval $(desk load <name|dir>)

Fixes #36

@megalithic
Copy link

@jamesob bump, pls

@megalithic
Copy link

@jamesob bump, pls; this is brilliant.

@jamesob
Copy link
Owner

jamesob commented Jul 6, 2022

Hey, sorry for the egregious delay here and thank you for the reminder. Looks good, thanks!

@jamesob
Copy link
Owner

jamesob commented Jul 6, 2022

The included test fails for me when I run it locally with make bash:

desktester@1b19b608cca5:~$ bash run_tests.sh
Desk dir already exists at /home/desktester/.desk
mkdir: cannot create directory '/home/desktester/terraform-repo': File exists
~/example-project ~
~
~/example-project ~
/bin/bash: line 0: export: `${DESK_ENV}': not a valid identifier
grep: "/home/desktester/example-project/Deskfile";: No such file or directory
grep: "/home/desktester/example-project/Deskfile";: No such file or directory
Failed: Deskfile load didn't work (./)

@ryansch
Copy link
Author

ryansch commented Jul 7, 2022

@jamesob Try now!

@ryansch
Copy link
Author

ryansch commented Jul 7, 2022

I also tossed in some Dockerfile updates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Load a desk without launching a new shell instance
3 participants