{"action":"opened","issue":{"url":"https://api.github.com/repos/composer/composer/issues/4988","repository_url":"https://api.github.com/repos/composer/composer","labels_url":"https://api.github.com/repos/composer/composer/issues/4988/labels{/name}","comments_url":"https://api.github.com/repos/composer/composer/issues/4988/comments","events_url":"https://api.github.com/repos/composer/composer/issues/4988/events","html_url":"https://github.com/composer/composer/issues/4988","id":137836491,"number":4988,"title":"bin-dir not working when using global","user":{"login":"havvg","id":126898,"avatar_url":"https://avatars.githubusercontent.com/u/126898?v=3","gravatar_id":"","url":"https://api.github.com/users/havvg","html_url":"https://github.com/havvg","followers_url":"https://api.github.com/users/havvg/followers","following_url":"https://api.github.com/users/havvg/following{/other_user}","gists_url":"https://api.github.com/users/havvg/gists{/gist_id}","starred_url":"https://api.github.com/users/havvg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havvg/subscriptions","organizations_url":"https://api.github.com/users/havvg/orgs","repos_url":"https://api.github.com/users/havvg/repos","events_url":"https://api.github.com/users/havvg/events{/privacy}","received_events_url":"https://api.github.com/users/havvg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-02T10:37:51Z","updated_at":"2016-03-02T10:37:51Z","closed_at":null,"body":"Hi there,\r\n\r\nI'm trying to use the `bin-dir` option in the `composer.json` of `composer global`. It contains an absolute path `/usr/local/bin`, but composer is not symlinking the global installation into this directory, but uses the default `vendor/bin`.\r\n\r\n```\r\n$ cat /var/opt/composer/composer.json\r\n{\r\n    \"bin-dir\": \"/usr/local/bin\",\r\n    \"require\": {\r\n        \"fabpot/php-cs-fixer\": \"^1.11\"\r\n    }\r\n}\r\n```\r\n\r\n```\r\n$ composer global config --list\r\nChanged current directory to /var/opt/composer\r\n[repositories.packagist.type] composer\r\n[repositories.packagist.url] https?://packagist.org\r\n[repositories.packagist.allow_ssl_downgrade] true\r\n[process-timeout] 300\r\n[use-include-path] false\r\n[preferred-install] auto\r\n[notify-on-install] true\r\n[github-protocols] [https, ssh]\r\n[vendor-dir] vendor (/var/opt/composer/vendor)\r\n[bin-dir] {$vendor-dir}/bin (/var/opt/composer/vendor/bin)\r\n[cache-dir] /var/cache/composer\r\n[data-dir] /var/opt/composer\r\n[cache-files-dir] {$cache-dir}/files (/var/cache/composer/files)\r\n[cache-repo-dir] {$cache-dir}/repo (/var/cache/composer/repo)\r\n[cache-vcs-dir] {$cache-dir}/vcs (/var/cache/composer/vcs)\r\n[cache-ttl] 15552000\r\n[cache-files-ttl] 15552000\r\n[cache-files-maxsize] 300MiB (314572800)\r\n[bin-compat] auto\r\n[discard-changes] false\r\n[autoloader-suffix]\r\n[sort-packages] false\r\n[optimize-autoloader] false\r\n[classmap-authoritative] false\r\n[prepend-autoloader] true\r\n[github-domains] [github.com]\r\n[disable-tls] false\r\n[secure-http] true\r\n[cafile]\r\n[capath]\r\n[github-expose-hostname] true\r\n[gitlab-domains] [gitlab.com]\r\n[store-auths] prompt\r\n[archive-format] tar\r\n[archive-dir] .\r\n[home] /var/opt/composer\r\n```\r\n\r\nAm I missing something?"}}