{"action":"created","comment":{"url":"https://api.github.com/repos/nvbn/thefuck/pulls/comments/29108049","id":29108049,"diff_hunk":"@@ -117,8 +117,16 @@ alias FUCK='fuck'\n Or in `config.fish`:\n \n ```fish\n-function fuck\n-    eval (thefuck $history[1])\n+function __thefuck_repl --description 'Replace operators into fish-compatible'\n+    set -l tmp (echo $argv | sed 's/ && / ; and /g')\n+    echo $tmp | sed 's/ || / ; or /g'\n+end\n+\n+function fuck --description 'Correct your previous console command'\n+    set -l eval_script /tmp/.thefuck.fish","path":"README.md","position":12,"original_position":12,"commit_id":"4bce525109dc0da72de9be447ecce1bd2ba577b4","original_commit_id":"4bce525109dc0da72de9be447ecce1bd2ba577b4","user":{"login":"daenney","id":569574,"avatar_url":"https://avatars.githubusercontent.com/u/569574?v=3","gravatar_id":"","url":"https://api.github.com/users/daenney","html_url":"https://github.com/daenney","followers_url":"https://api.github.com/users/daenney/followers","following_url":"https://api.github.com/users/daenney/following{/other_user}","gists_url":"https://api.github.com/users/daenney/gists{/gist_id}","starred_url":"https://api.github.com/users/daenney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daenney/subscriptions","organizations_url":"https://api.github.com/users/daenney/orgs","repos_url":"https://api.github.com/users/daenney/repos","events_url":"https://api.github.com/users/daenney/events{/privacy}","received_events_url":"https://api.github.com/users/daenney/received_events","type":"User","site_admin":false},"body":"This should probably use `$TMPDIR` instead / when it is set.","created_at":"2015-04-26T09:20:07Z","updated_at":"2015-04-26T09:20:07Z","html_url":"https://github.com/nvbn/thefuck/pull/130#discussion_r29108049","pull_request_url":"https://api.github.com/repos/nvbn/thefuck/pulls/130","_links":{"self":{"href":"https://api.github.com/repos/nvbn/thefuck/pulls/comments/29108049"},"html":{"href":"https://github.com/nvbn/thefuck/pull/130#discussion_r29108049"},"pull_request":{"href":"https://api.github.com/repos/nvbn/thefuck/pulls/130"}}},"pull_request":{"url":"https://api.github.com/repos/nvbn/thefuck/pulls/130","id":34112674,"html_url":"https://github.com/nvbn/thefuck/pull/130","diff_url":"https://github.com/nvbn/thefuck/pull/130.diff","patch_url":"https://github.com/nvbn/thefuck/pull/130.patch","issue_url":"https://api.github.com/repos/nvbn/thefuck/issues/130","number":130,"state":"open","locked":false,"title":"config.fish: improve documentation on creating Fish functions","user":{"login":"scorphus","id":2112697,"avatar_url":"https://avatars.githubusercontent.com/u/2112697?v=3","gravatar_id":"","url":"https://api.github.com/users/scorphus","html_url":"https://github.com/scorphus","followers_url":"https://api.github.com/users/scorphus/followers","following_url":"https://api.github.com/users/scorphus/following{/other_user}","gists_url":"https://api.github.com/users/scorphus/gists{/gist_id}","starred_url":"https://api.github.com/users/scorphus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorphus/subscriptions","organizations_url":"https://api.github.com/users/scorphus/orgs","repos_url":"https://api.github.com/users/scorphus/repos","events_url":"https://api.github.com/users/scorphus/events{/privacy}","received_events_url":"https://api.github.com/users/scorphus/received_events","type":"User","site_admin":false},"body":"How about this as solution to #128? Please review and comment. Thanks!","created_at":"2015-04-25T20:37:04Z","updated_at":"2015-04-26T09:20:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efb2124cc33ab21fc4d13a7492c91eb0e8966764","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nvbn/thefuck/pulls/130/commits","review_comments_url":"https://api.github.com/repos/nvbn/thefuck/pulls/130/comments","review_comment_url":"https://api.github.com/repos/nvbn/thefuck/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nvbn/thefuck/issues/130/comments","statuses_url":"https://api.github.com/repos/nvbn/thefuck/statuses/4bce525109dc0da72de9be447ecce1bd2ba577b4","head":{"label":"scorphus:issue-128-fish-logical-operators","ref":"issue-128-fish-logical-operators","sha":"4bce525109dc0da72de9be447ecce1bd2ba577b4","user":{"login":"scorphus","id":2112697,"avatar_url":"https://avatars.githubusercontent.com/u/2112697?v=3","gravatar_id":"","url":"https://api.github.com/users/scorphus","html_url":"https://github.com/scorphus","followers_url":"https://api.github.com/users/scorphus/followers","following_url":"https://api.github.com/users/scorphus/following{/other_user}","gists_url":"https://api.github.com/users/scorphus/gists{/gist_id}","starred_url":"https://api.github.com/users/scorphus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorphus/subscriptions","organizations_url":"https://api.github.com/users/scorphus/orgs","repos_url":"https://api.github.com/users/scorphus/repos","events_url":"https://api.github.com/users/scorphus/events{/privacy}","received_events_url":"https://api.github.com/users/scorphus/received_events","type":"User","site_admin":false},"repo":{"id":34336309,"name":"thefuck","full_name":"scorphus/thefuck","owner":{"login":"scorphus","id":2112697,"avatar_url":"https://avatars.githubusercontent.com/u/2112697?v=3","gravatar_id":"","url":"https://api.github.com/users/scorphus","html_url":"https://github.com/scorphus","followers_url":"https://api.github.com/users/scorphus/followers","following_url":"https://api.github.com/users/scorphus/following{/other_user}","gists_url":"https://api.github.com/users/scorphus/gists{/gist_id}","starred_url":"https://api.github.com/users/scorphus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scorphus/subscriptions","organizations_url":"https://api.github.com/users/scorphus/orgs","repos_url":"https://api.github.com/users/scorphus/repos","events_url":"https://api.github.com/users/scorphus/events{/privacy}","received_events_url":"https://api.github.com/users/scorphus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scorphus/thefuck","description":"Magnificent app which corrects your previous console command.","fork":true,"url":"https://api.github.com/repos/scorphus/thefuck","forks_url":"https://api.github.com/repos/scorphus/thefuck/forks","keys_url":"https://api.github.com/repos/scorphus/thefuck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scorphus/thefuck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scorphus/thefuck/teams","hooks_url":"https://api.github.com/repos/scorphus/thefuck/hooks","issue_events_url":"https://api.github.com/repos/scorphus/thefuck/issues/events{/number}","events_url":"https://api.github.com/repos/scorphus/thefuck/events","assignees_url":"https://api.github.com/repos/scorphus/thefuck/assignees{/user}","branches_url":"https://api.github.com/repos/scorphus/thefuck/branches{/branch}","tags_url":"https://api.github.com/repos/scorphus/thefuck/tags","blobs_url":"https://api.github.com/repos/scorphus/thefuck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scorphus/thefuck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scorphus/thefuck/git/refs{/sha}","trees_url":"https://api.github.com/repos/scorphus/thefuck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scorphus/thefuck/statuses/{sha}","languages_url":"https://api.github.com/repos/scorphus/thefuck/languages","stargazers_url":"https://api.github.com/repos/scorphus/thefuck/stargazers","contributors_url":"https://api.github.com/repos/scorphus/thefuck/contributors","subscribers_url":"https://api.github.com/repos/scorphus/thefuck/subscribers","subscription_url":"https://api.github.com/repos/scorphus/thefuck/subscription","commits_url":"https://api.github.com/repos/scorphus/thefuck/commits{/sha}","git_commits_url":"https://api.github.com/repos/scorphus/thefuck/git/commits{/sha}","comments_url":"https://api.github.com/repos/scorphus/thefuck/comments{/number}","issue_comment_url":"https://api.github.com/repos/scorphus/thefuck/issues/comments{/number}","contents_url":"https://api.github.com/repos/scorphus/thefuck/contents/{+path}","compare_url":"https://api.github.com/repos/scorphus/thefuck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scorphus/thefuck/merges","archive_url":"https://api.github.com/repos/scorphus/thefuck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scorphus/thefuck/downloads","issues_url":"https://api.github.com/repos/scorphus/thefuck/issues{/number}","pulls_url":"https://api.github.com/repos/scorphus/thefuck/pulls{/number}","milestones_url":"https://api.github.com/repos/scorphus/thefuck/milestones{/number}","notifications_url":"https://api.github.com/repos/scorphus/thefuck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scorphus/thefuck/labels{/name}","releases_url":"https://api.github.com/repos/scorphus/thefuck/releases{/id}","created_at":"2015-04-21T15:40:30Z","updated_at":"2015-04-25T19:54:47Z","pushed_at":"2015-04-25T22:45:19Z","git_url":"git://github.com/scorphus/thefuck.git","ssh_url":"git@github.com:scorphus/thefuck.git","clone_url":"https://github.com/scorphus/thefuck.git","svn_url":"https://github.com/scorphus/thefuck","homepage":"","size":197,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nvbn:master","ref":"master","sha":"419878f526c35a9caf5f4665693d9170b638081e","user":{"login":"nvbn","id":1114542,"avatar_url":"https://avatars.githubusercontent.com/u/1114542?v=3","gravatar_id":"","url":"https://api.github.com/users/nvbn","html_url":"https://github.com/nvbn","followers_url":"https://api.github.com/users/nvbn/followers","following_url":"https://api.github.com/users/nvbn/following{/other_user}","gists_url":"https://api.github.com/users/nvbn/gists{/gist_id}","starred_url":"https://api.github.com/users/nvbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvbn/subscriptions","organizations_url":"https://api.github.com/users/nvbn/orgs","repos_url":"https://api.github.com/users/nvbn/repos","events_url":"https://api.github.com/users/nvbn/events{/privacy}","received_events_url":"https://api.github.com/users/nvbn/received_events","type":"User","site_admin":false},"repo":{"id":33614304,"name":"thefuck","full_name":"nvbn/thefuck","owner":{"login":"nvbn","id":1114542,"avatar_url":"https://avatars.githubusercontent.com/u/1114542?v=3","gravatar_id":"","url":"https://api.github.com/users/nvbn","html_url":"https://github.com/nvbn","followers_url":"https://api.github.com/users/nvbn/followers","following_url":"https://api.github.com/users/nvbn/following{/other_user}","gists_url":"https://api.github.com/users/nvbn/gists{/gist_id}","starred_url":"https://api.github.com/users/nvbn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvbn/subscriptions","organizations_url":"https://api.github.com/users/nvbn/orgs","repos_url":"https://api.github.com/users/nvbn/repos","events_url":"https://api.github.com/users/nvbn/events{/privacy}","received_events_url":"https://api.github.com/users/nvbn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nvbn/thefuck","description":"Magnificent app which corrects your previous console command.","fork":false,"url":"https://api.github.com/repos/nvbn/thefuck","forks_url":"https://api.github.com/repos/nvbn/thefuck/forks","keys_url":"https://api.github.com/repos/nvbn/thefuck/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nvbn/thefuck/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nvbn/thefuck/teams","hooks_url":"https://api.github.com/repos/nvbn/thefuck/hooks","issue_events_url":"https://api.github.com/repos/nvbn/thefuck/issues/events{/number}","events_url":"https://api.github.com/repos/nvbn/thefuck/events","assignees_url":"https://api.github.com/repos/nvbn/thefuck/assignees{/user}","branches_url":"https://api.github.com/repos/nvbn/thefuck/branches{/branch}","tags_url":"https://api.github.com/repos/nvbn/thefuck/tags","blobs_url":"https://api.github.com/repos/nvbn/thefuck/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nvbn/thefuck/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nvbn/thefuck/git/refs{/sha}","trees_url":"https://api.github.com/repos/nvbn/thefuck/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nvbn/thefuck/statuses/{sha}","languages_url":"https://api.github.com/repos/nvbn/thefuck/languages","stargazers_url":"https://api.github.com/repos/nvbn/thefuck/stargazers","contributors_url":"https://api.github.com/repos/nvbn/thefuck/contributors","subscribers_url":"https://api.github.com/repos/nvbn/thefuck/subscribers","subscription_url":"https://api.github.com/repos/nvbn/thefuck/subscription","commits_url":"https://api.github.com/repos/nvbn/thefuck/commits{/sha}","git_commits_url":"https://api.github.com/repos/nvbn/thefuck/git/commits{/sha}","comments_url":"https://api.github.com/repos/nvbn/thefuck/comments{/number}","issue_comment_url":"https://api.github.com/repos/nvbn/thefuck/issues/comments{/number}","contents_url":"https://api.github.com/repos/nvbn/thefuck/contents/{+path}","compare_url":"https://api.github.com/repos/nvbn/thefuck/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nvbn/thefuck/merges","archive_url":"https://api.github.com/repos/nvbn/thefuck/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nvbn/thefuck/downloads","issues_url":"https://api.github.com/repos/nvbn/thefuck/issues{/number}","pulls_url":"https://api.github.com/repos/nvbn/thefuck/pulls{/number}","milestones_url":"https://api.github.com/repos/nvbn/thefuck/milestones{/number}","notifications_url":"https://api.github.com/repos/nvbn/thefuck/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nvbn/thefuck/labels{/name}","releases_url":"https://api.github.com/repos/nvbn/thefuck/releases{/id}","created_at":"2015-04-08T15:08:04Z","updated_at":"2015-04-26T08:45:55Z","pushed_at":"2015-04-25T22:45:19Z","git_url":"git://github.com/nvbn/thefuck.git","ssh_url":"git@github.com:nvbn/thefuck.git","clone_url":"https://github.com/nvbn/thefuck.git","svn_url":"https://github.com/nvbn/thefuck","homepage":"","size":1146,"stargazers_count":8020,"watchers_count":8020,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":337,"mirror_url":null,"open_issues_count":32,"forks":337,"open_issues":32,"watchers":8020,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nvbn/thefuck/pulls/130"},"html":{"href":"https://github.com/nvbn/thefuck/pull/130"},"issue":{"href":"https://api.github.com/repos/nvbn/thefuck/issues/130"},"comments":{"href":"https://api.github.com/repos/nvbn/thefuck/issues/130/comments"},"review_comments":{"href":"https://api.github.com/repos/nvbn/thefuck/pulls/130/comments"},"review_comment":{"href":"https://api.github.com/repos/nvbn/thefuck/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nvbn/thefuck/pulls/130/commits"},"statuses":{"href":"https://api.github.com/repos/nvbn/thefuck/statuses/4bce525109dc0da72de9be447ecce1bd2ba577b4"}}}}