jamesob / desk

A lightweight workspace manager for the shell
MIT License
2.54k stars 112 forks source link

Add load command #80

Open ryansch opened 6 years ago

ryansch commented 6 years ago

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 commented 3 years ago

@jamesob bump, pls

megalithic commented 2 years ago

@jamesob bump, pls; this is brilliant.

jamesob commented 2 years ago

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

jamesob commented 2 years ago

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 commented 2 years ago

@jamesob Try now!

ryansch commented 2 years ago

I also tossed in some Dockerfile updates.