nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
85.41k stars 3.43k forks source link

Fuck suggests `fincore [fixed-command]` with sudo #700

Closed Epse closed 3 years ago

Epse commented 7 years ago

I'm on Fedora and any time I type a command with sudo and then fuck it, fuck proposes either fincore [unfixed command] or fincore [fixed-command] as the only option.

Debug output:

    DEBUG: Run with settings: {'alter_history': True,
     'debug': True,
     'env': {'GIT_TRACE': '1', 'LANG': 'C', 'LC_ALL': 'C'},
     'exclude_rules': [],
     'history_limit': None,
     'instant_mode': False,
     'no_colors': False,
     'priority': {},
     'repeat': False,
     'require_confirmation': True,
     'rules': [<const: All rules enabled>],
     'slow_commands': ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'],
     'user_dir': PosixPath('/home/e/.config/thefuck'),
     'wait_command': 3,
     'wait_slow_command': 15}
    DEBUG: Received output: /bin/sh: nocorrect: command not found

DEBUG: Call: sudo vm; with env: {'ANDROID_HOME': '/home/e/Android/Sdk', 'LANG': 'C', 'DISPLAY': ':0', 'SHLVL': '1', 'LOGNAME': 'e', 'XDG_VTNR': '2', 'PWD': '/home/e/Documents/programming', 'USER': 'e', 'DESKTOP_AUTOSTART_ID': '1025e8cf3ce8d73390150719149190710800000022400008', 'JOURNAL_STREAM': '9:46149', 'COLORTERM': 'truecolor', 'XDG_SESSION_ID': '2', 'DESKTOP_SESSION': 'gnome', 'GOPATH': '/home/e/Documents/programming/Go', 'XDG_SESSION_DESKTOP': 'gnome', 'GDMSESSION': 'gnome', 'GNOME_DESKTOP_SESSION_ID': 'this-is-deprecated', 'USERNAME': 'e', 'WAYLAND_DISPLAY': 'wayland-0', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'LESSOPEN': '||/usr/bin/lesspipe.sh %s', 'MAIL': '/var/spool/mail/e', 'MODULESHOME': '/usr/share/Modules', 'XDG_DATA_DIRS': '/home/e/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/', 'HISTCONTROL': 'ignoredups', 'XDG_MENU_PREFIX': 'gnome-', 'GDM_LANG': 'en_GB.UTF-8', 'HOSTNAME': 'portapunch', 'XDG_SESSION_TYPE': 'wayland', 'OLDPWD': '/home/e/Documents/programming/thefuck', 'TERM': 'xterm-256color', 'SESSION_MANAGER': 'local/unix:@/tmp/.ICE-unix/2240,unix/unix:/tmp/.ICE-unix/2240', 'HISTSIZE': '10000', 'XDG_CURRENT_DESKTOP': 'GNOME', 'PATH': '/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/e/.gem/ruby/2.3.0/bin:/home/e/Documents/programming/Go/bin:/home/e/Android/Sdk/tools:/home/e/Android/Sdk/platform-tool:/home/e/.local/bin:/home/e/bin:/home/e/.gem/ruby/2.3.0/bin:/home/e/Documents/programming/Go/bin:/home/e/Android/Sdk/tools:/home/e/Android/Sdk/platform-tool:/home/e/.local/bin', 'QT_IM_MODULE': 'ibus', 'MODULEPATH': '/etc/scl/modulefiles:/etc/scl/modulefiles:/usr/share/Modules/modulefiles:/etc/modulefiles:/usr/share/modulefiles', 'HOME': '/home/e', 'SSH_AUTH_SOCK': '/tmp/ssh-jai2eemvS8o3/agent.3669', 'XMODIFIERS': '@im=ibus', 'SHELL': '/bin/zsh', 'XDG_RUNTIME_DIR': '/run/user/1000', 'LOADEDMODULES': '', 'XDG_SEAT': 'seat0', 'VTE_VERSION': '4803', 'LS_COLORS': 'rs=0:di=38;5;33:ln=38;5;51:mh=00:pi=40;38;5;11:so=38;5;13:do=38;5;5:bd=48;5;232;38;5;11:cd=48;5;232;38;5;3:or=48;5;232;38;5;9:mi=01;05;37;41:su=48;5;196;38;5;15:sg=48;5;11;38;5;16:ca=48;5;196;38;5;226:tw=48;5;10;38;5;16:ow=48;5;10;38;5;21:st=48;5;21;38;5;15:ex=38;5;40:*.tar=38;5;9:*.tgz=38;5;9:*.arc=38;5;9:*.arj=38;5;9:*.taz=38;5;9:*.lha=38;5;9:*.lz4=38;5;9:*.lzh=38;5;9:*.lzma=38;5;9:*.tlz=38;5;9:*.txz=38;5;9:*.tzo=38;5;9:*.t7z=38;5;9:*.zip=38;5;9:*.z=38;5;9:*.Z=38;5;9:*.dz=38;5;9:*.gz=38;5;9:*.lrz=38;5;9:*.lz=38;5;9:*.lzo=38;5;9:*.xz=38;5;9:*.zst=38;5;9:*.tzst=38;5;9:*.bz2=38;5;9:*.bz=38;5;9:*.tbz=38;5;9:*.tbz2=38;5;9:*.tz=38;5;9:*.deb=38;5;9:*.rpm=38;5;9:*.jar=38;5;9:*.war=38;5;9:*.ear=38;5;9:*.sar=38;5;9:*.rar=38;5;9:*.alz=38;5;9:*.ace=38;5;9:*.zoo=38;5;9:*.cpio=38;5;9:*.7z=38;5;9:*.rz=38;5;9:*.cab=38;5;9:*.wim=38;5;9:*.swm=38;5;9:*.dwm=38;5;9:*.esd=38;5;9:*.jpg=38;5;13:*.jpeg=38;5;13:*.mjpg=38;5;13:*.mjpeg=38;5;13:*.gif=38;5;13:*.bmp=38;5;13:*.pbm=38;5;13:*.pgm=38;5;13:*.ppm=38;5;13:*.tga=38;5;13:*.xbm=38;5;13:*.xpm=38;5;13:*.tif=38;5;13:*.tiff=38;5;13:*.png=38;5;13:*.svg=38;5;13:*.svgz=38;5;13:*.mng=38;5;13:*.pcx=38;5;13:*.mov=38;5;13:*.mpg=38;5;13:*.mpeg=38;5;13:*.m2v=38;5;13:*.mkv=38;5;13:*.webm=38;5;13:*.ogm=38;5;13:*.mp4=38;5;13:*.m4v=38;5;13:*.mp4v=38;5;13:*.vob=38;5;13:*.qt=38;5;13:*.nuv=38;5;13:*.wmv=38;5;13:*.asf=38;5;13:*.rm=38;5;13:*.rmvb=38;5;13:*.flc=38;5;13:*.avi=38;5;13:*.fli=38;5;13:*.flv=38;5;13:*.gl=38;5;13:*.dl=38;5;13:*.xcf=38;5;13:*.xwd=38;5;13:*.yuv=38;5;13:*.cgm=38;5;13:*.emf=38;5;13:*.ogv=38;5;13:*.ogx=38;5;13:*.aac=38;5;45:*.au=38;5;45:*.flac=38;5;45:*.m4a=38;5;45:*.mid=38;5;45:*.midi=38;5;45:*.mka=38;5;45:*.mp3=38;5;45:*.mpc=38;5;45:*.ogg=38;5;45:*.ra=38;5;45:*.wav=38;5;45:*.oga=38;5;45:*.opus=38;5;45:*.spx=38;5;45:*.xspf=38;5;45:', 'ZSH': '/home/e/.oh-my-zsh', 'PAGER': 'less', 'LESS': '-R', 'LC_CTYPE': 'en_GB.UTF-8', 'LSCOLORS': 'Gxfxcxdxbxegedabagacad', 'EDITOR': 'vi', 'SSH_AGENT_PID': '3670', 'TF_ALIAS': 'fuck', 'TF_SHELL_ALIASES': '-=\'cd -\'\n...=../..\n....=../../..\n.....=../../../..\n......=../../../../..\n1=\'cd -\'\n2=\'cd -2\'\n3=\'cd -3\'\n4=\'cd -4\'\n5=\'cd -5\'\n6=\'cd -6\'\n7=\'cd -7\'\n8=\'cd -8\'\n9=\'cd -9\'\n_=sudo\nafind=\'ack -il\'\nd=\'dirs -v | head -10\'\ndirs=\'dirs -v\'\nebuild=\'nocorrect ebuild\'\negrep=\'egrep --color=auto\'\nfgrep=\'fgrep --color=auto\'\ng=git\nga=\'git add\'\ngaa=\'git add --all\'\ngapa=\'git add --patch\'\ngau=\'git add --update\'\ngb=\'git branch\'\ngba=\'git branch -a\'\ngbd=\'git branch -d\'\ngbda=\'git branch --no-color --merged | command grep -vE "^(\\*|\\s*(master|develop|dev)\\s*$)" | command xargs -n 1 git branch -d\'\ngbl=\'git blame -b -w\'\ngbnm=\'git branch --no-merged\'\ngbr=\'git branch --remote\'\ngbs=\'git bisect\'\ngbsb=\'git bisect bad\'\ngbsg=\'git bisect good\'\ngbsr=\'git bisect reset\'\ngbss=\'git bisect start\'\ngc=\'git commit -v\'\n\'gc!\'=\'git commit -v --amend\'\ngca=\'git commit -v -a\'\n\'gca!\'=\'git commit -v -a --amend\'\ngcam=\'git commit -a -m\'\n\'gcan!\'=\'git commit -v -a --no-edit --amend\'\n\'gcans!\'=\'git commit -v -a -s --no-edit --amend\'\ngcb=\'git checkout -b\'\ngcd=\'git checkout develop\'\ngcf=\'git config --list\'\ngcl=\'git clone --recursive\'\ngclean=\'git clean -fd\'\ngcm=\'git checkout master\'\ngcmsg=\'git commit -m\'\n\'gcn!\'=\'git commit -v --no-edit --amend\'\ngco=\'git checkout\'\ngcount=\'git shortlog -sn\'\ngcp=\'git cherry-pick\'\ngcpa=\'git cherry-pick --abort\'\ngcpc=\'git cherry-pick --continue\'\ngcs=\'git commit -S\'\ngcsm=\'git commit -s -m\'\ngd=\'git diff\'\ngdca=\'git diff --cached\'\ngdct=\'git describe --tags `git rev-list --tags --max-count=1`\'\ngdt=\'git diff-tree --no-commit-id --name-only -r\'\ngdw=\'git diff --word-diff\'\ngf=\'git fetch\'\ngfa=\'git fetch --all --prune\'\ngfo=\'git fetch origin\'\ngg=\'git gui citool\'\ngga=\'git gui citool --amend\'\nggpull=\'git pull origin $(git_current_branch)\'\nggpur=ggu\nggpush=\'git push origin $(git_current_branch)\'\nggsup=\'git branch --set-upstream-to=origin/$(git_current_branch)\'\nghh=\'git help\'\ngignore=\'git update-index --assume-unchanged\'\ngignored=\'git ls-files -v | grep "^[[:lower:]]"\'\ngist=\'nocorrect gist\'\ngit-svn-dcommit-push=\'git svn dcommit && git push github master:svntrunk\'\ngk=\'\\gitk --all --branches\'\ngke=\'\\gitk --all $(git log -g --pretty=%h)\'\ngl=\'git pull\'\nglg=\'git log --stat\'\nglgg=\'git log --graph\'\nglgga=\'git log --graph --decorate --all\'\nglgm=\'git log --graph --max-count=10\'\nglgp=\'git log --stat -p\'\nglo=\'git log --oneline --decorate\'\ngloburl=\'noglob urlglobber \'\nglog=\'git log --oneline --decorate --graph\'\ngloga=\'git log --oneline --decorate --graph --all\'\nglol=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\'\\\'\' --abbrev-commit\'\nglola=\'git log --graph --pretty=\'\\\'\'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset\'\\\'\' --abbrev-commit --all\'\nglp=_git_log_prettily\nglum=\'git pull upstream master\'\ngm=\'git merge\'\ngmom=\'git merge origin/master\'\ngmt=\'git mergetool --no-prompt\'\ngmtvim=\'git mergetool --no-prompt --tool=vimdiff\'\ngmum=\'git merge upstream/master\'\ngp=\'git push\'\ngpd=\'git push --dry-run\'\ngpoat=\'git push origin --all && git push origin --tags\'\ngpristine=\'git reset --hard && git clean -dfx\'\ngpsup=\'git push --set-upstream origin $(git_current_branch)\'\ngpu=\'git push upstream\'\ngpv=\'git push -v\'\ngr=\'git remote\'\ngra=\'git remote add\'\ngrb=\'git rebase\'\ngrba=\'git rebase --abort\'\ngrbc=\'git rebase --continue\'\ngrbi=\'git rebase -i\'\ngrbm=\'git rebase master\'\ngrbs=\'git rebase --skip\'\ngrep=\'grep  --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}\'\ngrh=\'git reset HEAD\'\ngrhh=\'git reset HEAD --hard\'\ngrmv=\'git remote rename\'\ngrrm=\'git remote remove\'\ngrset=\'git remote set-url\'\ngrt=\'cd $(git rev-parse --show-toplevel || echo ".")\'\ngru=\'git reset --\'\ngrup=\'git remote update\'\ngrv=\'git remote -v\'\ngsb=\'git status -sb\'\ngsd=\'git svn dcommit\'\ngsi=\'git submodule init\'\ngsps=\'git show --pretty=short --show-signature\'\ngsr=\'git svn rebase\'\ngss=\'git status -s\'\ngst=\'git status\'\ngsta=\'git stash save\'\ngstaa=\'git stash apply\'\ngstc=\'git stash clear\'\ngstd=\'git stash drop\'\ngstl=\'git stash list\'\ngstp=\'git stash pop\'\ngsts=\'git stash show --text\'\ngsu=\'git submodule update\'\ngts=\'git tag -s\'\ngtv=\'git tag | sort -V\'\ngunignore=\'git update-index --no-assume-unchanged\'\ngunwip=\'git log -n 1 | grep -q -c "\\-\\-wip\\-\\-" && git reset HEAD~1\'\ngup=\'git pull --rebase\'\ngupv=\'git pull --rebase -v\'\ngwch=\'git whatchanged -p --abbrev-commit --pretty=medium\'\ngwip=\'git add -A; git rm $(git ls-files --deleted) 2> /dev/null; git commit --no-verify -m "--wip-- [skip ci]"\'\nheroku=\'nocorrect heroku\'\nhistory=\'fc -l 1\'\nhpodder=\'nocorrect hpodder\'\nl=\'ls -lah\'\nl.=\'ls -d .* --color=auto\'\nla=\'ls -lAh\'\nll=\'ls -lh\'\nls=\'ls --color=tty\'\nlsa=\'ls -lah\'\nman=\'nocorrect man\'\nmd=\'mkdir -p\'\nmkdir=\'nocorrect mkdir\'\nmv=\'nocorrect mv\'\nmysql=\'nocorrect mysql\'\nplease=sudo\npo=popd\npu=pushd\nrd=rmdir\nrun-help=man\nsudo=\'nocorrect sudo\'\nwhich=\'(alias; declare -f) | /usr/bin/which --tty-only --read-alias --read-functions --show-tilde --show-dot\'\nwhich-command=whence\nx=exit\nxzegrep=\'xzegrep --color=auto\'\nxzfgrep=\'xzfgrep --color=auto\'\nxzgrep=\'xzgrep --color=auto\'\nzegrep=\'zegrep --color=auto\'\nzfgrep=\'zfgrep --color=auto\'\nzgrep=\'zgrep --color=auto\'', 'TF_HISTORY': 'cd ..\nmv thefuck/thefuck/rules/dnf_no_such_command.py .\nsudo dnf nstall vim\nfuck\nmv dnf_no_such_command.py thefuck/thefuck/rules\nsudo vm\nfuck\nvm\nfuck\nsudo vm', 'PYTHONIOENCODING': 'utf-8', '_': '/home/e/.local/bin/thefuck', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow:  took: 0:00:00.001575
DEBUG: Importing rule: ag_literal; took: 0:00:00.000361
DEBUG: Importing rule: apt_get; took: 0:00:00.000574
DEBUG: Importing rule: apt_get_search; took: 0:00:00.000246
DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000615
DEBUG: Importing rule: aws_cli; took: 0:00:00.000236
DEBUG: Importing rule: brew_install; took: 0:00:00.000267
DEBUG: Importing rule: brew_link; took: 0:00:00.000222
DEBUG: Importing rule: brew_uninstall; took: 0:00:00.000210
DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000110
DEBUG: Importing rule: brew_update_formula; took: 0:00:00.000206
DEBUG: Importing rule: cargo; took: 0:00:00.000078
DEBUG: Importing rule: cargo_no_command; took: 0:00:00.000463
DEBUG: Importing rule: cd_correction; took: 0:00:00.001148
DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000419
DEBUG: Importing rule: cd_parent; took: 0:00:00.000097
DEBUG: Importing rule: chmod_x; took: 0:00:00.000094
DEBUG: Importing rule: composer_not_command; took: 0:00:00.000241
DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000381
DEBUG: Importing rule: cpp11; took: 0:00:00.000234
DEBUG: Importing rule: dirty_untar; took: 0:00:00.001251
DEBUG: Importing rule: dirty_unzip; took: 0:00:00.000989
DEBUG: Importing rule: django_south_ghost; took: 0:00:00.000108
DEBUG: Importing rule: django_south_merge; took: 0:00:00.000091
DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.003133
DEBUG: Importing rule: docker_not_command; took: 0:00:00.000804
DEBUG: Importing rule: dry; took: 0:00:00.000132
DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000455
DEBUG: Importing rule: fix_alt_space; took: 0:00:00.000351
DEBUG: Importing rule: fix_file; took: 0:00:00.002990
DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000516
DEBUG: Importing rule: git_add; took: 0:00:00.000453
DEBUG: Importing rule: git_add_force; took: 0:00:00.000243
DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000268
DEBUG: Importing rule: git_branch_delete; took: 0:00:00.000278
DEBUG: Importing rule: git_branch_exists; took: 0:00:00.000291
DEBUG: Importing rule: git_branch_list; took: 0:00:00.000241
DEBUG: Importing rule: git_checkout; took: 0:00:00.000331
DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000232
DEBUG: Importing rule: git_diff_staged; took: 0:00:00.000219
DEBUG: Importing rule: git_fix_stash; took: 0:00:00.000222
DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000559
DEBUG: Importing rule: git_help_aliased; took: 0:00:00.000236
DEBUG: Importing rule: git_not_command; took: 0:00:00.000240
DEBUG: Importing rule: git_pull; took: 0:00:00.000238
DEBUG: Importing rule: git_pull_clone; took: 0:00:00.000223
DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000224
DEBUG: Importing rule: git_push; took: 0:00:00.000276
DEBUG: Importing rule: git_push_force; took: 0:00:00.000224
DEBUG: Importing rule: git_push_pull; took: 0:00:00.000239
DEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000293
DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000250
DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000165
DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000181
DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000260
DEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000227
DEBUG: Importing rule: git_rm_staged; took: 0:00:00.000218
DEBUG: Importing rule: git_stash; took: 0:00:00.000217
DEBUG: Importing rule: git_stash_pop; took: 0:00:00.000237
DEBUG: Importing rule: git_tag_force; took: 0:00:00.000229
DEBUG: Importing rule: git_two_dashes; took: 0:00:00.000223
DEBUG: Importing rule: go_run; took: 0:00:00.000220
DEBUG: Importing rule: gradle_no_task; took: 0:00:00.000509
DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000229
DEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000270
DEBUG: Importing rule: grep_recursive; took: 0:00:00.000225
DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000484
DEBUG: Importing rule: gulp_not_task; took: 0:00:00.000334
DEBUG: Importing rule: has_exists_script; took: 0:00:00.000238
DEBUG: Importing rule: heroku_not_command; took: 0:00:00.000227
DEBUG: Importing rule: history; took: 0:00:00.000123
DEBUG: Importing rule: hostscli; took: 0:00:00.000341
DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000277
DEBUG: Importing rule: java; took: 0:00:00.000227
DEBUG: Importing rule: javac; took: 0:00:00.000221
DEBUG: Importing rule: lein_not_task; took: 0:00:00.000357
DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000244
DEBUG: Importing rule: ln_s_order; took: 0:00:00.000238
DEBUG: Importing rule: ls_all; took: 0:00:00.000228
DEBUG: Importing rule: ls_lah; took: 0:00:00.000220
DEBUG: Importing rule: man; took: 0:00:00.000218
DEBUG: Importing rule: man_no_space; took: 0:00:00.000105
DEBUG: Importing rule: mercurial; took: 0:00:00.000269
DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000137
DEBUG: Importing rule: mkdir_p; took: 0:00:00.000237
DEBUG: Importing rule: mvn_no_command; took: 0:00:00.000223
DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000236
DEBUG: Importing rule: no_command; took: 0:00:00.000248
DEBUG: Importing rule: no_such_file; took: 0:00:00.000111
DEBUG: Importing rule: npm_missing_script; took: 0:00:00.000456
DEBUG: Importing rule: npm_run_script; took: 0:00:00.000271
DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000351
DEBUG: Importing rule: open; took: 0:00:00.000285
DEBUG: Importing rule: pacman; took: 0:00:00.000363
DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000115
DEBUG: Importing rule: path_from_history; took: 0:00:00.000166
DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000295
DEBUG: Importing rule: port_already_in_use; took: 0:00:00.000172
DEBUG: Importing rule: python_command; took: 0:00:00.000241
DEBUG: Importing rule: python_execute; took: 0:00:00.000206
DEBUG: Importing rule: quotation_marks; took: 0:00:00.000104
DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000421
DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000099
DEBUG: Importing rule: rm_dir; took: 0:00:00.000219
DEBUG: Importing rule: rm_root; took: 0:00:00.000217
DEBUG: Importing rule: scm_correction; took: 0:00:00.000267
DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000224
DEBUG: Importing rule: sl_ls; took: 0:00:00.000080
DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000217
DEBUG: Importing rule: sudo; took: 0:00:00.000086
DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000216
DEBUG: Importing rule: switch_lang; took: 0:00:00.000110
DEBUG: Importing rule: systemctl; took: 0:00:00.000389
DEBUG: Importing rule: test.py; took: 0:00:00.000089
DEBUG: Importing rule: tmux; took: 0:00:00.000225
DEBUG: Importing rule: touch; took: 0:00:00.000275
DEBUG: Importing rule: tsuru_login; took: 0:00:00.000212
DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000209
DEBUG: Importing rule: unknown_command; took: 0:00:00.000088
DEBUG: Importing rule: vagrant_up; took: 0:00:00.000220
DEBUG: Importing rule: whois; took: 0:00:00.000356
DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000278
DEBUG: Importing rule: yarn_alias; took: 0:00:00.000339
DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.001220
DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.001824
DEBUG: Importing rule: yarn_help; took: 0:00:00.000334
DEBUG: Trying rule: path_from_history; took: 0:00:00.000604
DEBUG: Trying rule: dry; took: 0:00:00.000120
DEBUG: Trying rule: git_stash_pop; took: 0:00:00.000030
DEBUG: Trying rule: test.py; took: 0:00:00.000003
DEBUG: Trying rule: ag_literal; took: 0:00:00.000016
DEBUG: Trying rule: aws_cli; took: 0:00:00.000012
DEBUG: Trying rule: brew_link; took: 0:00:00.000029
DEBUG: Trying rule: brew_uninstall; took: 0:00:00.000029
DEBUG: Trying rule: brew_update_formula; took: 0:00:00.000009
DEBUG: Trying rule: cargo; took: 0:00:00.000001
DEBUG: Trying rule: cargo_no_command; took: 0:00:00.000011
DEBUG: Trying rule: cd_correction; took: 0:00:00.000029
DEBUG: Trying rule: cd_mkdir; took: 0:00:00.000011
DEBUG: Trying rule: cd_parent; took: 0:00:00.000002
DEBUG: Trying rule: chmod_x; took: 0:00:00.000002
DEBUG: Trying rule: composer_not_command; took: 0:00:00.000011
DEBUG: Trying rule: cp_omitting_directory; took: 0:00:00.000011
DEBUG: Trying rule: cpp11; took: 0:00:00.000011
DEBUG: Trying rule: dirty_untar; took: 0:00:00.000010
DEBUG: Trying rule: dirty_unzip; took: 0:00:00.000011
DEBUG: Trying rule: django_south_ghost; took: 0:00:00.000003
DEBUG: Trying rule: django_south_merge; took: 0:00:00.000001
DEBUG: Trying rule: dnf_no_such_command; took: 0:00:00.000012
DEBUG: Trying rule: docker_not_command; took: 0:00:00.000011
DEBUG: Trying rule: fab_command_not_found; took: 0:00:00.000015
DEBUG: Trying rule: fix_alt_space; took: 0:00:00.000004
DEBUG: Trying rule: fix_file; took: 0:00:00.000029
DEBUG: Trying rule: gem_unknown_command; took: 0:00:00.000012
DEBUG: Trying rule: git_add; took: 0:00:00.000010
DEBUG: Trying rule: git_add_force; took: 0:00:00.000008
DEBUG: Trying rule: git_bisect_usage; took: 0:00:00.000008
DEBUG: Trying rule: git_branch_delete; took: 0:00:00.000008
DEBUG: Trying rule: git_branch_exists; took: 0:00:00.000008
DEBUG: Trying rule: git_branch_list; took: 0:00:00.000008
DEBUG: Trying rule: git_checkout; took: 0:00:00.000008
DEBUG: Trying rule: git_diff_no_index; took: 0:00:00.000008
DEBUG: Trying rule: git_diff_staged; took: 0:00:00.000008
DEBUG: Trying rule: git_fix_stash; took: 0:00:00.000009
DEBUG: Trying rule: git_flag_after_filename; took: 0:00:00.000008
DEBUG: Trying rule: git_help_aliased; took: 0:00:00.000012
DEBUG: Trying rule: git_not_command; took: 0:00:00.000008
DEBUG: Trying rule: git_pull; took: 0:00:00.000008
DEBUG: Trying rule: git_pull_clone; took: 0:00:00.000008
DEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00.000008
DEBUG: Trying rule: git_push; took: 0:00:00.000009
DEBUG: Trying rule: git_push_pull; took: 0:00:00.000008
DEBUG: Trying rule: git_push_without_commits; took: 0:00:00.000008
DEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00.000008
DEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00.000012
DEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00.000008
DEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00.000007
DEBUG: Trying rule: git_rm_recursive; took: 0:00:00.000007
DEBUG: Trying rule: git_rm_staged; took: 0:00:00.000008
DEBUG: Trying rule: git_stash; took: 0:00:00.000008
DEBUG: Trying rule: git_tag_force; took: 0:00:00.000008
DEBUG: Trying rule: git_two_dashes; took: 0:00:00.000008
DEBUG: Trying rule: go_run; took: 0:00:00.000013
DEBUG: Trying rule: gradle_no_task; took: 0:00:00.000013
DEBUG: Trying rule: gradle_wrapper; took: 0:00:00.000010
DEBUG: Trying rule: grep_arguments_order; took: 0:00:00.000010
DEBUG: Trying rule: grep_recursive; took: 0:00:00.000011
DEBUG: Trying rule: grunt_task_not_found; took: 0:00:00.000009
DEBUG: Trying rule: gulp_not_task; took: 0:00:00.000011
DEBUG: Trying rule: has_exists_script; took: 0:00:00.000023
DEBUG: Trying rule: heroku_not_command; took: 0:00:00.000012
DEBUG: Trying rule: hostscli; took: 0:00:00.000013
DEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00.000010
DEBUG: Trying rule: java; took: 0:00:00.000012
DEBUG: Trying rule: javac; took: 0:00:00.000010
DEBUG: Trying rule: lein_not_task; took: 0:00:00.000010
DEBUG: Trying rule: ln_no_hard_link; took: 0:00:00.000003
DEBUG: Trying rule: ln_s_order; took: 0:00:00.000003
DEBUG: Trying rule: ls_all; took: 0:00:00.000011
DEBUG: Trying rule: ls_lah; took: 0:00:00.000009
DEBUG: Trying rule: man; took: 0:00:00.000034
DEBUG: Trying rule: mercurial; took: 0:00:00.000009
DEBUG: Trying rule: mkdir_p; took: 0:00:00.000008
DEBUG: Trying rule: mvn_no_command; took: 0:00:00.000011
DEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000008
DEBUG: Trying rule: no_such_file; took: 0:00:00.000659
DEBUG: Trying rule: npm_missing_script; took: 0:00:00.000054
DEBUG: Trying rule: npm_run_script; took: 0:00:00.000010
DEBUG: Trying rule: npm_wrong_command; took: 0:00:00.000011
DEBUG: Trying rule: open; took: 0:00:00.000012
DEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000011
DEBUG: Trying rule: port_already_in_use; took: 0:00:00.000492
DEBUG: Trying rule: python_command; took: 0:00:00.000006
DEBUG: Trying rule: python_execute; took: 0:00:00.000023
DEBUG: Trying rule: quotation_marks; took: 0:00:00.000002
DEBUG: Trying rule: react_native_command_unrecognized; took: 0:00:00.000012
DEBUG: Trying rule: remove_trailing_cedilla; took: 0:00:00.000002
DEBUG: Trying rule: rm_dir; took: 0:00:00.000003
DEBUG: Trying rule: scm_correction; took: 0:00:00.000012
DEBUG: Trying rule: sed_unterminated_s; took: 0:00:00.000015
DEBUG: Trying rule: sl_ls; took: 0:00:00.000002
DEBUG: Trying rule: ssh_known_hosts; took: 0:00:00.000010
DEBUG: Trying rule: sudo; took: 0:00:00.000009
DEBUG: Trying rule: sudo_command_from_user_path; took: 0:00:00.000010
DEBUG: Trying rule: switch_lang; took: 0:00:00.000016
DEBUG: Trying rule: systemctl; took: 0:00:00.000011
DEBUG: Trying rule: tmux; took: 0:00:00.000010
DEBUG: Trying rule: touch; took: 0:00:00.000012
DEBUG: Trying rule: tsuru_login; took: 0:00:00.000010
DEBUG: Trying rule: tsuru_not_command; took: 0:00:00.000008
DEBUG: Trying rule: unknown_command; took: 0:00:00.000109
DEBUG: Trying rule: vagrant_up; took: 0:00:00.000013
DEBUG: Trying rule: whois; took: 0:00:00.000017
DEBUG: Trying rule: workon_doesnt_exists; took: 0:00:00.000010
DEBUG: Trying rule: yarn_alias; took: 0:00:00.000010
DEBUG: Trying rule: yarn_command_not_found; took: 0:00:00.000009
DEBUG: Trying rule: yarn_command_replaced; took: 0:00:00.000008
DEBUG: Trying rule: yarn_help; took: 0:00:00.000009
DEBUG: Trying rule: man_no_space; took: 0:00:00.000002
DEBUG: Trying rule: no_command; took: 0:00:00.011705
principis commented 3 years ago

Had the same problem, solved it by exporting export TF_OVERRIDDEN_ALIASES='sudo' before loading the plugin.

This issue is 3 years old, thus should maybe be closed?

scorphus commented 3 years ago

Seems reasonable, @principis. Thanks for the nudge 👍