luan / tmuxfiles

10 stars 9 forks source link

`readlink -f` usage in install script is broken on OSX #2

Open tjvman opened 6 years ago

tjvman commented 6 years ago

OSX Version: Sierra (10.12.6)

The install script uses readlink -f ~/.tmux.conf to check for the presence of an existing configuration. However, the BSD -f flag is used to specify a format, not for canonicalizing (as it is in linux https://linux.die.net/man/1/readlink). On the mac, it appears this is non-trivial (https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac) but possible.

dpb587-pivotal commented 6 years ago

Ran into this as well