{"action":"created","issue":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/528","repository_url":"https://api.github.com/repos/nvbn/thefuck","labels_url":"https://api.github.com/repos/nvbn/thefuck/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/nvbn/thefuck/issues/528/comments","events_url":"https://api.github.com/repos/nvbn/thefuck/issues/528/events","html_url":"https://github.com/nvbn/thefuck/issues/528","id":163445204,"number":528,"title":"Terminal input fucked after running fuck","user":{"login":"mechcozmo","id":4474412,"avatar_url":"https://avatars.githubusercontent.com/u/4474412?v=3","gravatar_id":"","url":"https://api.github.com/users/mechcozmo","html_url":"https://github.com/mechcozmo","followers_url":"https://api.github.com/users/mechcozmo/followers","following_url":"https://api.github.com/users/mechcozmo/following{/other_user}","gists_url":"https://api.github.com/users/mechcozmo/gists{/gist_id}","starred_url":"https://api.github.com/users/mechcozmo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mechcozmo/subscriptions","organizations_url":"https://api.github.com/users/mechcozmo/orgs","repos_url":"https://api.github.com/users/mechcozmo/repos","events_url":"https://api.github.com/users/mechcozmo/events{/privacy}","received_events_url":"https://api.github.com/users/mechcozmo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-01T17:59:22Z","updated_at":"2016-10-06T10:53:03Z","closed_at":null,"body":"Scenario: using `ssh-add` to add a key for github.\r\n\r\n```bash\r\n$ ssh-add add ~/.ssh/github_rsa\r\nadd: No such file or directory\r\nEnter passphrase for .ssh/github_rsa:\r\n```\r\n\r\nOops, but we're perfect individuals who only run perfect commands, so let's fix it.\r\n\r\n```bash\r\n$ fuck\r\nEnter passphrase for .ssh/github_rsa: No fucks given\r\n$\r\n```\r\n\r\nStrange.  Let me just re-type the command myself, like an animal.\r\n\r\n```\r\n$\r\n```\r\n\r\nMy keyboard's not working!\r\n\r\nPressing `enter` pulls up a new prompt... but on the same line.\r\n```\r\n$$$$$\r\n```\r\nI can hit `^C`, though, so that's cool.\r\n```\r\n$^C\r\n$\r\n```\r\nBut characters I type don't appear.\r\n\r\n--------------------------\r\nSystem info:\r\n```\r\n$ thefuck --version\r\nThe Fuck 3.9 using Python 2.7.10\r\n$ /usr/local/bin/bash --version\r\nGNU bash, version 4.3.42(1)-release (x86_64-apple-darwin15.4.0)\r\n```\r\nOS X 10.11.5\r\n\r\nDebug output:\r\n```\r\n$ ssh-add add .ssh/github_rsa\r\nadd: No such file or directory\r\nEnter passphrase for .ssh/github_rsa: ^C\r\n\r\n$ fuck\r\nDEBUG: Run with settings: {'alter_history': True,\r\n 'debug': True,\r\n 'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},\r\n 'exclude_rules': [],\r\n 'history_limit': None,\r\n 'no_colors': False,\r\n 'priority': {},\r\n 'require_confirmation': True,\r\n 'rules': [<const: All rules enabled>],\r\n 'user_dir': PosixPath('/Users/mechcozmo/.config/thefuck'),\r\n 'wait_command': 3}\r\nEnter passphrase for .ssh/github_rsa: DEBUG: Execution timed out!\r\nDEBUG: Call: ssh-add add .ssh/github_rsa; with env: {'HISTTIMEFORMAT': '[%F %T] ', 'PYTHONIOENCODING': 'utf-8', 'GIT_TRACE': '1', 'HISTFILE': '/Users/mechcozmo/.bash_eternal_history', 'VERSIONER_PYTHON_PREFER_32_BIT': 'no', 'TERM_PROGRAM_VERSION': '3.0.2', 'TMPDIR': '/var/folders/5k/9kwxxzyn7wg0zwhzc3sqzb64p96blq/T/', 'LOGNAME': 'mechcozmo', 'USER': 'mechcozmo', 'HOME': '/Users/mechcozmo', 'PATH': '/Users/mechcozmo/.rbenv/shims:/Users/mechcozmo/.pyenv/shims:/Users/mechcozmo/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin', 'HISTSIZE': '', 'TERM_PROGRAM': 'iTerm.app', 'LANG': 'C', 'THEFUCK_DEBUG': 'true', 'TERM': 'xterm-256color', 'SHELL': '/usr/local/bin/bash', 'COLORFGBG': '12;8', 'PROD_ACCOUNT_NUMBER': '201164921408', 'PYENV_SHELL': 'bash', 'VERSIONER_PYTHON_VERSION': '2.7', 'SHLVL': '1', 'TF_ALIAS': 'fuck', 'SECURITYSESSIONID': '186a8', 'XPC_FLAGS': '0x0', 'RBENV_SHELL': 'bash', 'ITERM_SESSION_ID': 'w0t4p1:F8ACDA41-3142-455A-9F67-40215A594182', 'EDITOR': 'vim', 'HISTFILESIZE': '', 'TF_SHELL_ALIASES': \"alias fuck='TF_CMD=$(TF_ALIAS=fuck PYTHONIOENCODING=utf-8 TF_SHELL_ALIASES=$(alias) thefuck $(fc -ln -1)) && eval $TF_CMD && history -s $TF_CMD'\", 'TERM_SESSION_ID': 'w0t4p1:F8ACDA41-3142-455A-9F67-40215A594182', 'SSH_AUTH_SOCK': '/private/tmp/com.apple.launchd.xODNkSyexM/Listeners', 'PYTHONPATH': '/usr/local/Cellar/thefuck/3.9/libexec/lib/python2.7/site-packages:/usr/local/Cellar/thefuck/3.9/libexec/vendor/lib/python2.7/site-packages', 'XPC_SERVICE_NAME': '0', 'Apple_PubSub_Socket_Render': '/private/tmp/com.apple.launchd.9h2XVxuLr8/Render', 'ITERM_PROFILE': 'Default', 'LC_ALL': 'C', '_': '/usr/local/bin/thefuck', '__CF_USER_TEXT_ENCODING': '0x2C932E77:0x0:0x0', 'PWD': '/Users/mechcozmo', 'COMMAND_MODE': 'unix2003'}; took: 0:00:03.046685\r\nDEBUG: Importing rule: apt_get; took: 0:00:00.001687\r\nDEBUG: Importing rule: apt_get_search; took: 0:00:00.003771\r\nDEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.004499\r\nDEBUG: Importing rule: brew_install; took: 0:00:00.003910\r\nDEBUG: Importing rule: brew_unknown_command; took: 0:00:00.003622\r\nDEBUG: Importing rule: brew_update_formula; took: 0:00:00.000809\r\nDEBUG: Importing rule: brew_upgrade; took: 0:00:00.003854\r\nDEBUG: Importing rule: cargo; took: 0:00:00.003126\r\nDEBUG: Importing rule: cargo_no_command; took: 0:00:00.001007\r\nDEBUG: Importing rule: cd_correction; took: 0:00:00.005087\r\nDEBUG: Importing rule: cd_mkdir; took: 0:00:00.000640\r\nDEBUG: Importing rule: cd_parent; took: 0:00:00.002242\r\nDEBUG: Importing rule: chmod_x; took: 0:00:00.000500\r\nDEBUG: Importing rule: composer_not_command; took: 0:00:00.000702\r\nDEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000974\r\nDEBUG: Importing rule: cpp11; took: 0:00:00.003622\r\nDEBUG: Importing rule: dirty_untar; took: 0:00:00.013058\r\nDEBUG: Importing rule: dirty_unzip; took: 0:00:00.003445\r\nDEBUG: Importing rule: django_south_ghost; took: 0:00:00.002845\r\nDEBUG: Importing rule: django_south_merge; took: 0:00:00.000489\r\nDEBUG: Importing rule: docker_not_command; took: 0:00:00.002116\r\nDEBUG: Importing rule: dry; took: 0:00:00.004838\r\nDEBUG: Importing rule: fix_alt_space; took: 0:00:00.000810\r\nDEBUG: Importing rule: fix_file; took: 0:00:00.007477\r\nDEBUG: Importing rule: git_add; took: 0:00:00.003243\r\nDEBUG: Importing rule: git_branch_delete; took: 0:00:00.003687\r\nDEBUG: Importing rule: git_branch_exists; took: 0:00:00.000758\r\nDEBUG: Importing rule: git_branch_list; took: 0:00:00.000673\r\nDEBUG: Importing rule: git_checkout; took: 0:00:00.000776\r\nDEBUG: Importing rule: git_diff_staged; took: 0:00:00.003937\r\nDEBUG: Importing rule: git_fix_stash; took: 0:00:00.003838\r\nDEBUG: Importing rule: git_help_aliased; took: 0:00:00.003716\r\nDEBUG: Importing rule: git_not_command; took: 0:00:00.003717\r\nDEBUG: Importing rule: git_pull; took: 0:00:00.000732\r\nDEBUG: Importing rule: git_pull_clone; took: 0:00:00.003627\r\nDEBUG: Importing rule: git_push; took: 0:00:00.000662\r\nDEBUG: Importing rule: git_push_force; took: 0:00:00.000816\r\nDEBUG: Importing rule: git_push_pull; took: 0:00:00.004589\r\nDEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.002933\r\nDEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000733\r\nDEBUG: Importing rule: git_stash; took: 0:00:00.000696\r\nDEBUG: Importing rule: git_two_dashes; took: 0:00:00.000828\r\nDEBUG: Importing rule: go_run; took: 0:00:00.003845\r\nDEBUG: Importing rule: grep_arguments_order; took: 0:00:00.003950\r\nDEBUG: Importing rule: grep_recursive; took: 0:00:00.003931\r\nDEBUG: Importing rule: gulp_not_task; took: 0:00:00.003886\r\nDEBUG: Importing rule: has_exists_script; took: 0:00:00.003750\r\nDEBUG: Importing rule: heroku_not_command; took: 0:00:00.004076\r\nDEBUG: Importing rule: history; took: 0:00:00.003378\r\nDEBUG: Importing rule: java; took: 0:00:00.003591\r\nDEBUG: Importing rule: javac; took: 0:00:00.004146\r\nDEBUG: Importing rule: lein_not_task; took: 0:00:00.004115\r\nDEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.003457\r\nDEBUG: Importing rule: ls_lah; took: 0:00:00.003817\r\nDEBUG: Importing rule: man; took: 0:00:00.000757\r\nDEBUG: Importing rule: man_no_space; took: 0:00:00.003388\r\nDEBUG: Importing rule: mercurial; took: 0:00:00.000689\r\nDEBUG: Importing rule: mkdir_p; took: 0:00:00.000699\r\nDEBUG: Importing rule: mvn_no_command; took: 0:00:00.004517\r\nDEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.003691\r\nDEBUG: Importing rule: no_command; took: 0:00:00.003124\r\nDEBUG: Importing rule: no_such_file; took: 0:00:00.000477\r\nDEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000779\r\nDEBUG: Importing rule: open; took: 0:00:00.003863\r\nDEBUG: Importing rule: pacman; took: 0:00:00.004452\r\nDEBUG: Importing rule: pacman_not_found; took: 0:00:00.003371\r\nDEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000949\r\nDEBUG: Importing rule: python_command; took: 0:00:00.003797\r\nDEBUG: Importing rule: python_execute; took: 0:00:00.003606\r\nDEBUG: Importing rule: quotation_marks; took: 0:00:00.000599\r\nDEBUG: Importing rule: rm_dir; took: 0:00:00.000708\r\nDEBUG: Importing rule: rm_root; took: 0:00:00.004196\r\nDEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.003314\r\nDEBUG: Importing rule: sl_ls; took: 0:00:00.003528\r\nDEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000708\r\nDEBUG: Importing rule: sudo; took: 0:00:00.000529\r\nDEBUG: Importing rule: switch_lang; took: 0:00:00.000458\r\nDEBUG: Importing rule: systemctl; took: 0:00:00.001227\r\nDEBUG: Importing rule: test.py; took: 0:00:00.006401\r\nDEBUG: Importing rule: tmux; took: 0:00:00.000913\r\nDEBUG: Importing rule: touch; took: 0:00:00.003633\r\nDEBUG: Importing rule: tsuru_login; took: 0:00:00.000712\r\nDEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000841\r\nDEBUG: Importing rule: unknown_command; took: 0:00:00.003609\r\nDEBUG: Importing rule: vagrant_up; took: 0:00:00.000656\r\nDEBUG: Importing rule: whois; took: 0:00:00.004475\r\nDEBUG: Trying rule: dirty_unzip; took: 0:00:00.003588\r\nNo fucks given\r\nDEBUG: Total took: 0:00:03.306391\r\n```"},"comment":{"url":"https://api.github.com/repos/nvbn/thefuck/issues/comments/251929563","html_url":"https://github.com/nvbn/thefuck/issues/528#issuecomment-251929563","issue_url":"https://api.github.com/repos/nvbn/thefuck/issues/528","id":251929563,"user":{"login":"rojepp","id":445888,"avatar_url":"https://avatars.githubusercontent.com/u/445888?v=3","gravatar_id":"","url":"https://api.github.com/users/rojepp","html_url":"https://github.com/rojepp","followers_url":"https://api.github.com/users/rojepp/followers","following_url":"https://api.github.com/users/rojepp/following{/other_user}","gists_url":"https://api.github.com/users/rojepp/gists{/gist_id}","starred_url":"https://api.github.com/users/rojepp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rojepp/subscriptions","organizations_url":"https://api.github.com/users/rojepp/orgs","repos_url":"https://api.github.com/users/rojepp/repos","events_url":"https://api.github.com/users/rojepp/events{/privacy}","received_events_url":"https://api.github.com/users/rojepp/received_events","type":"User","site_admin":false},"created_at":"2016-10-06T10:53:03Z","updated_at":"2016-10-06T10:53:03Z","body":"FWIW, I see this issue in ubuntu on Windows 10. Is thefuck not supposed to wait for me to enter my password when sudo-ing something?\r\n"}}
{"actor":{"display_login":"rojepp"}}