Memo: How to manage symlinks on mac

I’m developing WordPress themes using multiple repos (git and svn) and found that using symlinks to be the simplest way to manage it.

Here is my memo how I did what and how to check/re-do symlinks.

To create symlinks from from wp-config/themes

$ ln -s ../../../path/to/my/repo/mytheme mytheme

To check what is linked

$ ls -l
total 1
lrwxr-xr-x 1 daigo localhost Users 44 Oct 15 16:07 mytheme -> ../../../path/to/my/repo/mytheme

To remove the link
Didn’t know this, but looks like you can use both rm and unlink

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">