Skip to main content
The 2024 Developer Survey results are live! See the results

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • I think the problem may be that variables set or exported in a script cannot alter the calling (parent) environment. See stackoverflow.com/questions/8604462/… for example.
    – msw
    Commented Dec 13, 2015 at 2:56
  • @Michael Homer, @cuonglm, @msw ... I have tried source, I do not think it fixed much.
    – le-doude
    Commented Dec 13, 2015 at 6:07
  • I don't know zsh, but it looks like you're having a problem with a difference between zsh and /bin/sh.  Try running zsh .workspace-shotcuts.sh; it will probably fail the same as the source command.  Then look at zsh documentation to figure out what you need to change to get it to work in zsh.  Then source .workspace-shotcuts.sh should work. Commented Dec 13, 2015 at 8:13