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

using a custom desks directory makes desk not work properly #11

Closed
MrMitch opened this issue Oct 27, 2015 · 7 comments
Closed

using a custom desks directory makes desk not work properly #11

MrMitch opened this issue Oct 27, 2015 · 7 comments

Comments

@MrMitch
Copy link
Contributor

MrMitch commented Oct 27, 2015

I tried to use a custom dir to store my desks so that i can version it using git and push it to my git server, but desk behaves quite weirdly.

mitch@pc$ desk ls
No desk dir! Run 'desk init'.
mitch@pc$ ls /home/mitch/Workspace/desks/
dash.sh  rdcli.sh  symfony.sh  wp.sh
mitch@pc$ desk init
Desk dir already exists at /home/mitch/Workspace/desks
@MrMitch
Copy link
Contributor Author

MrMitch commented Oct 27, 2015

resetting desks and making the ~/.desk/desks folder a symlink to my custom folder doesn't solve the problem

@jamesob
Copy link
Owner

jamesob commented Oct 28, 2015

Hey @MrMitch, sorry about that. Do you have DESK_DIR=/home/mitch/Workspace/desks/ somewhere in your environment?

@tompaton
Copy link

I think you want DESK_DESKS_DIR=/home/mitch/Workspace/desks/

I was about to submit a pull request that allows ~/.desk/desks to be replaced with a symlink before I found that option. (changing all instances of $DESKS to $DESKS/ worked form me in bash to force a symlink to be treated as a dir.)

@jamesob
Copy link
Owner

jamesob commented Oct 28, 2015

I'm not able to recreate on Ubuntu 14.04; I tried both a symlink (which is my current setup) and a custom path with export DESK_DIR=/some/path set in my ~/.zshrc.

@MrMitch can you give me more information about your environment?

@MrMitch
Copy link
Contributor Author

MrMitch commented Oct 28, 2015

I'm on Ubuntu 15.10 updated from a 15.04, running bash in Guake.
I'll try and reinstall desk tomorrow. Maybe it has something to do with the way I defined$DESK_DIR variable ? I added export DESK_DIR=/home/mitch/Workspace/desks to my .bashrc.

@tompaton
Copy link

EDIT - just noticed your PR above, you obviously grok this...

From what I can tell, $DESK_DIR should contain the "desks" directory, i.e. it defaults to ~/.desk, in your case you should be using: export DESK_DIR=/home/mitch/Workspace/

But as I mentioned above, it'll make more sense to point directly to your custom folder using: export DESK_DESKS_DIR=/home/mitch/Workspace/desks

@jamesob
Copy link
Owner

jamesob commented Nov 9, 2015

I think we're safe closing this out, no?

@jamesob jamesob closed this as completed Nov 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants