{"action":"created","issue":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/50","labels_url":"https://api.github.com/repos/nvbn/thefuck/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/nvbn/thefuck/issues/50/comments","events_url":"https://api.github.com/repos/nvbn/thefuck/issues/50/events","html_url":"https://github.com/nvbn/thefuck/issues/50","id":69515366,"number":50,"title":"cd to mkdir","user":{"login":"shahankit","id":4739743,"avatar_url":"https://avatars.githubusercontent.com/u/4739743?v=3","gravatar_id":"","url":"https://api.github.com/users/shahankit","html_url":"https://github.com/shahankit","followers_url":"https://api.github.com/users/shahankit/followers","following_url":"https://api.github.com/users/shahankit/following{/other_user}","gists_url":"https://api.github.com/users/shahankit/gists{/gist_id}","starred_url":"https://api.github.com/users/shahankit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahankit/subscriptions","organizations_url":"https://api.github.com/users/shahankit/orgs","repos_url":"https://api.github.com/users/shahankit/repos","events_url":"https://api.github.com/users/shahankit/events{/privacy}","received_events_url":"https://api.github.com/users/shahankit/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-20T06:11:58Z","updated_at":"2015-04-23T06:15:14Z","closed_at":"2015-04-22T18:43:07Z","body":"I'm trying to create a fuck for `cd: no such file or directory: <directory_name>` which gets converted to mkdir <directory_name>. \r\nI wrote following for match function but is says `No fuck given`\r\n```\r\ndef match(command, settings):\r\n    return (\"cd: no such file or directory:\" in command.stderr)\r\n```\r\nI tried printing stderr which contains `/bin/sh: 1: cd: can't cd to <directory_name>`. Why is it so and where do I get \"cd: no such file or directory:\""},"comment":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/comments/95455533","html_url":"https://github.com/nvbn/thefuck/issues/50#issuecomment-95455533","issue_url":"https://api.github.com/repos/nvbn/thefuck/issues/50","id":95455533,"user":{"login":"shahankit","id":4739743,"avatar_url":"https://avatars.githubusercontent.com/u/4739743?v=3","gravatar_id":"","url":"https://api.github.com/users/shahankit","html_url":"https://github.com/shahankit","followers_url":"https://api.github.com/users/shahankit/followers","following_url":"https://api.github.com/users/shahankit/following{/other_user}","gists_url":"https://api.github.com/users/shahankit/gists{/gist_id}","starred_url":"https://api.github.com/users/shahankit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahankit/subscriptions","organizations_url":"https://api.github.com/users/shahankit/orgs","repos_url":"https://api.github.com/users/shahankit/repos","events_url":"https://api.github.com/users/shahankit/events{/privacy}","received_events_url":"https://api.github.com/users/shahankit/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T06:15:14Z","updated_at":"2015-04-23T06:15:14Z","body":"@nwinkler thanks nice suggestion. I'll do that."}}