Closed niyue closed 7 years ago
Not sure if you had figured this out yet or not, but I had the exact same issue. In my case, I used homebrew to install, and according to the docs, if you brew install desk, it automatically sets itself up. However, I already had a pre-existing .desk/desks folder, so I did a "brew install desk" and then copied my .desk dir into place. The issue you list above is exactly to what I experienced. It turns out, the directions are incorrect.
I had to rm -rf ~.desk, and then "desk init" and then copy my .desk directory back into place. turns out, desk init adds the following to the .zshrc:
# Hook for desk activation
[ -n "$DESK_ENV" ] && source "$DESK_ENV" || true
Hope that helps. The documentation should be updated, or the brew install should be fixed to modify the .zshrc
I found desk doesn't work in one of my new machine and I have no idea why this happens.
When I ran
desk . ${desk}
, a shell is launched but nothing specified in the desk script is executed.As you can see in the above:
k
exists (shown bydesk ls
)k
does is just changing a directory and prints "hello" (cat k.sh
)zsh
shell is launched after runningdesk . k
Not sure if it is relevant, but when using
desk run
command,date
seems to work as expected butecho
still doesn't work as I expected and outputs only an empty line.I am using:
it is the same behavior for both iterm2 and Terminal app under macOS
This is a similar issue as #70 but that issue was closed without any fix. Could you please help? Thanks.