nvbn / thefuck

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

Support for doas #1312

Open ghost opened 2 years ago

ghost commented 2 years ago

The output of thefuck --version (something like The Fuck 3.1 using Python 3.5.0 and Bash 4.4.12(1)-release):

The Fuck 3.32 using Python 3.10.5 and Bash 5.1.16(1)-release

Your system (Debian 7, ArchLinux, Windows, etc.)

Arch Linux

How to reproduce the bug:

unistall sudo and install doas, when using your package manager and forgot to say doas, the fuck corrects it to sudo, i do not use sudo i use doas

The output of The Fuck with THEFUCK_DEBUG=true exported (typically execute export THEFUCK_DEBUG=true in your shell before The Fuck):

DEBUG: Received output: error: you cannot perform this operation unless you are root.

DEBUG: Call: pacman -S test; with env: {'SHELL': '/bin/bash', 'TF_SHELL': 'bash', 'COLORTERM': 'truecolor', 'I3SOCK': '/run/user/1000/sway-ipc.1000.1270.sock', 'KITTY_PID': '24346', 'XCURSOR_SIZE': '24', 'XDG_SEAT': 'seat0', 'PWD': '/home/anas', 'LOGNAME': 'anas', 'XDG_SESSION_TYPE': 'wayland', 'MOTD_SHOWN': 'pam', 'HOME': '/home/anas', 'LANG': 'C', 'SWAYSOCK': '/run/user/1000/sway-ipc.1000.1270.sock', 'WAYLAND_DISPLAY': 'wayland-1', 'KITTY_WINDOW_ID': '1', 'TF_ALIAS': 'fuck', 'XDG_SESSION_CLASS': 'user', 'TERMINFO': '/usr/lib/kitty/terminfo', 'TERM': 'xterm-kitty', 'TF_HISTORY': '\t thefuck\n\t fuck\n\t fuck\n\t sudo pacman -S test\n\t sudo pacman -S test\n\t su do pacman -S test\n\t thefuck --version\n\t thefuck --version\n\t export THEFUCK_DEBUG=true\n\t pacman -S test', 'USER': 'anas', 'PYTHONIOENCODING': 'utf-8', 'TF_SHELL_ALIASES': "alias ls='ls --color=auto'", 'DISPLAY': ':0', 'SHLVL': '1', 'XDG_VTNR': '2', 'XDG_SESSION_ID': '3', 'XDG_RUNTIME_DIR': '/run/user/1000', 'PATH': '/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl', 'THEFUCK_DEBUG': 'true', 'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'MAIL': '/var/spool/mail/anas', 'KITTY_INSTALLATIONDIR': '/usr/lib/kitty', '': '/sbin/thefuck', 'LC_ALL': 'C', 'GIT_TRACE': '1'}; is slow: False took: 0:00:00.003655 DEBUG: Importing rule: adb_unknown_command; took: 0:00:00.000074 DEBUG: Importing rule: ag_literal; took: 0:00:00.000106 DEBUG: Importing rule: apt_get; took: 0:00:00.000298 DEBUG: Importing rule: apt_get_search; took: 0:00:00.000097 DEBUG: Importing rule: apt_invalid_operation; took: 0:00:00.000212 DEBUG: Importing rule: apt_list_upgradable; took: 0:00:00.000105 DEBUG: Importing rule: apt_upgrade; took: 0:00:00.000152 DEBUG: Importing rule: aws_cli; took: 0:00:00.000095 DEBUG: Importing rule: az_cli; took: 0:00:00.000090 DEBUG: Importing rule: brew_cask_dependency; took: 0:00:00.000199 DEBUG: Importing rule: brew_install; took: 0:00:00.000062 DEBUG: Importing rule: brew_link; took: 0:00:00.000087 DEBUG: Importing rule: brew_reinstall; took: 0:00:00.000227 DEBUG: Importing rule: brew_uninstall; took: 0:00:00.000089 DEBUG: Importing rule: brew_unknown_command; took: 0:00:00.000070 DEBUG: Importing rule: brew_update_formula; took: 0:00:00.000085 DEBUG: Importing rule: cargo; took: 0:00:00.000055 DEBUG: Importing rule: cargo_no_command; took: 0:00:00.000088 DEBUG: Importing rule: cat_dir; took: 0:00:00.000088 DEBUG: Importing rule: cd_correction; took: 0:00:00.000345 DEBUG: Importing rule: cd_cs; took: 0:00:00.000066 DEBUG: Importing rule: cd_mkdir; took: 0:00:00.000138 DEBUG: Importing rule: cd_parent; took: 0:00:00.000057 DEBUG: Importing rule: chmod_x; took: 0:00:00.000058 DEBUG: Importing rule: choco_install; took: 0:00:00.000145 DEBUG: Importing rule: composer_not_command; took: 0:00:00.000091 DEBUG: Importing rule: conda_mistype; took: 0:00:00.000086 DEBUG: Importing rule: cp_create_destination; took: 0:00:00.000085 DEBUG: Importing rule: cp_omitting_directory; took: 0:00:00.000098 DEBUG: Importing rule: cpp11; took: 0:00:00.000084 DEBUG: Importing rule: dirty_untar; took: 0:00:00.000604 DEBUG: Importing rule: dirty_unzip; took: 0:00:00.000107 DEBUG: Importing rule: django_south_ghost; took: 0:00:00.000057 DEBUG: Importing rule: django_south_merge; took: 0:00:00.000053 DEBUG: Importing rule: dnf_no_such_command; took: 0:00:00.000266 DEBUG: Importing rule: docker_image_being_used_by_container; took: 0:00:00.000096 DEBUG: Importing rule: docker_login; took: 0:00:00.000091 DEBUG: Importing rule: docker_not_command; took: 0:00:00.000147 DEBUG: Importing rule: dry; took: 0:00:00.000056 DEBUG: Importing rule: fab_command_not_found; took: 0:00:00.000104 DEBUG: Importing rule: fix_alt_space; took: 0:00:00.000085 DEBUG: Importing rule: fix_file; took: 0:00:00.000945 DEBUG: Importing rule: gem_unknown_command; took: 0:00:00.000150 DEBUG: Importing rule: git_add; took: 0:00:00.000179 DEBUG: Importing rule: git_add_force; took: 0:00:00.000089 DEBUG: Importing rule: git_bisect_usage; took: 0:00:00.000087 DEBUG: Importing rule: git_branch_0flag; took: 0:00:00.000088 DEBUG: Importing rule: git_branch_delete; took: 0:00:00.000082 DEBUG: Importing rule: git_branch_delete_checked_out; took: 0:00:00.000086 DEBUG: Importing rule: git_branch_exists; took: 0:00:00.000093 DEBUG: Importing rule: git_branch_list; took: 0:00:00.000089 DEBUG: Importing rule: git_checkout; took: 0:00:00.000092 DEBUG: Importing rule: git_clone_git_clone; took: 0:00:00.000081 DEBUG: Importing rule: git_commit_add; took: 0:00:00.000117 DEBUG: Importing rule: git_commit_amend; took: 0:00:00.000088 DEBUG: Importing rule: git_commit_reset; took: 0:00:00.000083 DEBUG: Importing rule: git_diff_no_index; took: 0:00:00.000084 DEBUG: Importing rule: git_diff_staged; took: 0:00:00.000083 DEBUG: Importing rule: git_fix_stash; took: 0:00:00.000091 DEBUG: Importing rule: git_flag_after_filename; took: 0:00:00.000084 DEBUG: Importing rule: git_help_aliased; took: 0:00:00.000081 DEBUG: Importing rule: git_hook_bypass; took: 0:00:00.000088 DEBUG: Importing rule: git_lfs_mistype; took: 0:00:00.000085 DEBUG: Importing rule: git_main_master; took: 0:00:00.000080 DEBUG: Importing rule: git_merge; took: 0:00:00.000085 DEBUG: Importing rule: git_merge_unrelated; took: 0:00:00.000083 DEBUG: Importing rule: git_not_command; took: 0:00:00.000084 DEBUG: Importing rule: git_pull; took: 0:00:00.000081 DEBUG: Importing rule: git_pull_clone; took: 0:00:00.000091 DEBUG: Importing rule: git_pull_uncommitted_changes; took: 0:00:00.000112 DEBUG: Importing rule: git_push; took: 0:00:00.000089 DEBUG: Importing rule: git_push_different_branch_names; took: 0:00:00.000082 DEBUG: Importing rule: git_push_force; took: 0:00:00.000081 DEBUG: Importing rule: git_push_pull; took: 0:00:00.000086 DEBUG: Importing rule: git_push_without_commits; took: 0:00:00.000073 DEBUG: Importing rule: git_rebase_merge_dir; took: 0:00:00.000081 DEBUG: Importing rule: git_rebase_no_changes; took: 0:00:00.000074 DEBUG: Importing rule: git_remote_delete; took: 0:00:00.000083 DEBUG: Importing rule: git_remote_seturl_add; took: 0:00:00.000070 DEBUG: Importing rule: git_rm_local_modifications; took: 0:00:00.000083 DEBUG: Importing rule: git_rm_recursive; took: 0:00:00.000080 DEBUG: Importing rule: git_rm_staged; took: 0:00:00.000083 DEBUG: Importing rule: git_stash; took: 0:00:00.000080 DEBUG: Importing rule: git_stash_pop; took: 0:00:00.000088 DEBUG: Importing rule: git_tag_force; took: 0:00:00.000080 DEBUG: Importing rule: git_two_dashes; took: 0:00:00.000081 DEBUG: Importing rule: go_run; took: 0:00:00.000108 DEBUG: Importing rule: go_unknown_command; took: 0:00:00.000127 DEBUG: Importing rule: gradle_no_task; took: 0:00:00.000184 DEBUG: Importing rule: gradle_wrapper; took: 0:00:00.000091 DEBUG: Importing rule: grep_arguments_order; took: 0:00:00.000088 DEBUG: Importing rule: grep_recursive; took: 0:00:00.000085 DEBUG: Importing rule: grunt_task_not_found; took: 0:00:00.000162 DEBUG: Importing rule: gulp_not_task; took: 0:00:00.000095 DEBUG: Importing rule: has_exists_script; took: 0:00:00.000084 DEBUG: Importing rule: heroku_multiple_apps; took: 0:00:00.000086 DEBUG: Importing rule: heroku_not_command; took: 0:00:00.000085 DEBUG: Importing rule: history; took: 0:00:00.000057 DEBUG: Importing rule: hostscli; took: 0:00:00.000104 DEBUG: Importing rule: ifconfig_device_not_found; took: 0:00:00.000104 DEBUG: Importing rule: java; took: 0:00:00.000084 DEBUG: Importing rule: javac; took: 0:00:00.000114 DEBUG: Importing rule: lein_not_task; took: 0:00:00.000106 DEBUG: Importing rule: ln_no_hard_link; took: 0:00:00.000087 DEBUG: Importing rule: ln_s_order; took: 0:00:00.000093 DEBUG: Importing rule: long_form_help; took: 0:00:00.000057 DEBUG: Importing rule: ls_all; took: 0:00:00.000085 DEBUG: Importing rule: ls_lah; took: 0:00:00.000084 DEBUG: Importing rule: man; took: 0:00:00.000090 DEBUG: Importing rule: man_no_space; took: 0:00:00.000055 DEBUG: Importing rule: mercurial; took: 0:00:00.000086 DEBUG: Importing rule: missing_space_before_subcommand; took: 0:00:00.000061 DEBUG: Importing rule: mkdir_p; took: 0:00:00.000082 DEBUG: Importing rule: mvn_no_command; took: 0:00:00.000083 DEBUG: Importing rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000088 DEBUG: Importing rule: nixos_cmd_not_found; took: 0:00:00.000209 DEBUG: Importing rule: no_command; took: 0:00:00.000095 DEBUG: Importing rule: no_such_file; took: 0:00:00.000059 DEBUG: Importing rule: npm_missing_script; took: 0:00:00.000225 DEBUG: Importing rule: npm_run_script; took: 0:00:00.000092 DEBUG: Importing rule: npm_wrong_command; took: 0:00:00.000109 DEBUG: Importing rule: omnienv_no_such_command; took: 0:00:00.000196 DEBUG: Importing rule: open; took: 0:00:00.000104 DEBUG: Importing rule: pacman; took: 0:00:00.000226 DEBUG: Importing rule: pacman_invalid_option; took: 0:00:00.000106 DEBUG: Importing rule: pacman_not_found; took: 0:00:00.000063 DEBUG: Importing rule: path_from_history; took: 0:00:00.000068 DEBUG: Importing rule: php_s; took: 0:00:00.000091 DEBUG: Importing rule: pip_install; took: 0:00:00.000092 DEBUG: Importing rule: pip_unknown_command; took: 0:00:00.000093 DEBUG: Importing rule: port_already_in_use; took: 0:00:00.000098 DEBUG: Importing rule: prove_recursively; took: 0:00:00.000091 DEBUG: Importing rule: python_command; took: 0:00:00.000080 DEBUG: Importing rule: python_execute; took: 0:00:00.000088 DEBUG: Importing rule: python_module_error; took: 0:00:00.000057 DEBUG: Importing rule: quotation_marks; took: 0:00:00.000052 DEBUG: Importing rule: rails_migrations_pending; took: 0:00:00.000084 DEBUG: Importing rule: react_native_command_unrecognized; took: 0:00:00.000109 DEBUG: Importing rule: remove_shell_prompt_literal; took: 0:00:00.000055 DEBUG: Importing rule: remove_trailing_cedilla; took: 0:00:00.000051 DEBUG: Importing rule: rm_dir; took: 0:00:00.000085 DEBUG: Importing rule: rm_root; took: 0:00:00.000081 DEBUG: Importing rule: scm_correction; took: 0:00:00.000090 DEBUG: Importing rule: sed_unterminated_s; took: 0:00:00.000086 DEBUG: Importing rule: sl_ls; took: 0:00:00.000053 DEBUG: Importing rule: ssh_known_hosts; took: 0:00:00.000089 DEBUG: Importing rule: sudo; took: 0:00:00.000061 DEBUG: Importing rule: sudo_command_from_user_path; took: 0:00:00.000091 DEBUG: Importing rule: switch_lang; took: 0:00:00.000093 DEBUG: Importing rule: systemctl; took: 0:00:00.000106 DEBUG: Importing rule: terraform_init; took: 0:00:00.000088 DEBUG: Importing rule: test.py; took: 0:00:00.000053 DEBUG: Importing rule: tmux; took: 0:00:00.000084 DEBUG: Importing rule: touch; took: 0:00:00.000087 DEBUG: Importing rule: tsuru_login; took: 0:00:00.000114 DEBUG: Importing rule: tsuru_not_command; took: 0:00:00.000087 DEBUG: Importing rule: unknown_command; took: 0:00:00.000057 DEBUG: Importing rule: unsudo; took: 0:00:00.000056 DEBUG: Importing rule: vagrant_up; took: 0:00:00.000086 DEBUG: Importing rule: whois; took: 0:00:00.000143 DEBUG: Importing rule: workon_doesnt_exists; took: 0:00:00.000120 DEBUG: Importing rule: wrong_hyphen_before_subcommand; took: 0:00:00.000089 DEBUG: Importing rule: yarn_alias; took: 0:00:00.000088 DEBUG: Importing rule: yarn_command_not_found; took: 0:00:00.000196 DEBUG: Importing rule: yarn_command_replaced; took: 0:00:00.000140 DEBUG: Importing rule: yarn_help; took: 0:00:00.000091 DEBUG: Importing rule: yum_invalid_operation; took: 0:00:00.000208 DEBUG: Trying rule: path_from_history; took: 0:00:00.000213 DEBUG: Trying rule: cd_cs; took: 0:00:00.000021 DEBUG: Trying rule: dry; took: 0:00:00.000001 DEBUG: Trying rule: git_stash_pop; took: 0:00:00.000023 DEBUG: Trying rule: test.py; took: 0:00:00 DEBUG: Trying rule: adb_unknown_command; took: 0:00:00.000007 DEBUG: Trying rule: ag_literal; took: 0:00:00.000013 DEBUG: Trying rule: aws_cli; took: 0:00:00.000011 DEBUG: Trying rule: az_cli; took: 0:00:00.000009 DEBUG: Trying rule: brew_link; took: 0:00:00.000011 DEBUG: Trying rule: brew_reinstall; took: 0:00:00.000009 DEBUG: Trying rule: brew_uninstall; took: 0:00:00.000008 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.000012 DEBUG: Trying rule: cat_dir; took: 0:00:00.000010 DEBUG: Trying rule: cd_correction; took: 0:00:00.000013 DEBUG: Trying rule: cd_mkdir; took: 0:00:00.000011 DEBUG: Trying rule: cd_parent; took: 0:00:00.000001 DEBUG: Trying rule: chmod_x; took: 0:00:00.000001 DEBUG: Trying rule: composer_not_command; took: 0:00:00.000010 DEBUG: Trying rule: conda_mistype; took: 0:00:00.000010 DEBUG: Trying rule: cp_create_destination; took: 0:00:00.000009 DEBUG: Trying rule: cp_omitting_directory; took: 0:00:00.000013 DEBUG: Trying rule: cpp11; took: 0:00:00.000009 DEBUG: Trying rule: dirty_untar; took: 0:00:00.000008 DEBUG: Trying rule: dirty_unzip; took: 0:00:00.000008 DEBUG: Trying rule: django_south_ghost; took: 0:00:00.000001 DEBUG: Trying rule: django_south_merge; took: 0:00:00.000001 DEBUG: Trying rule: docker_image_being_used_by_container; took: 0:00:00.000009 DEBUG: Trying rule: docker_login; took: 0:00:00.000008 DEBUG: Trying rule: docker_not_command; took: 0:00:00.000012 DEBUG: Trying rule: fab_command_not_found; took: 0:00:00.000009 DEBUG: Trying rule: fix_alt_space; took: 0:00:00.000005 DEBUG: Trying rule: fix_file; took: 0:00:00.000003 DEBUG: Trying rule: gem_unknown_command; took: 0:00:00.000010 DEBUG: Trying rule: git_add; took: 0:00:00.000008 DEBUG: Trying rule: git_add_force; took: 0:00:00.000008 DEBUG: Trying rule: git_bisect_usage; took: 0:00:00.000007 DEBUG: Trying rule: git_branch_0flag; took: 0:00:00.000008 DEBUG: Trying rule: git_branch_delete; took: 0:00:00.000006 DEBUG: Trying rule: git_branch_delete_checked_out; took: 0:00:00.000007 DEBUG: Trying rule: git_branch_exists; took: 0:00:00.000007 DEBUG: Trying rule: git_branch_list; took: 0:00:00.000007 DEBUG: Trying rule: git_checkout; took: 0:00:00.000007 DEBUG: Trying rule: git_clone_git_clone; took: 0:00:00.000006 DEBUG: Trying rule: git_commit_add; took: 0:00:00.000006 DEBUG: Trying rule: git_commit_amend; took: 0:00:00.000007 DEBUG: Trying rule: git_commit_reset; took: 0:00:00.000006 DEBUG: Trying rule: git_diff_no_index; took: 0:00:00.000007 DEBUG: Trying rule: git_diff_staged; took: 0:00:00.000007 DEBUG: Trying rule: git_fix_stash; took: 0:00:00.000006 DEBUG: Trying rule: git_flag_after_filename; took: 0:00:00.000007 DEBUG: Trying rule: git_help_aliased; took: 0:00:00.000007 DEBUG: Trying rule: git_lfs_mistype; took: 0:00:00.000007 DEBUG: Trying rule: git_merge; took: 0:00:00.000006 DEBUG: Trying rule: git_merge_unrelated; took: 0:00:00.000007 DEBUG: Trying rule: git_not_command; took: 0:00:00.000007 DEBUG: Trying rule: git_pull; took: 0:00:00.000008 DEBUG: Trying rule: git_pull_clone; took: 0:00:00.000006 DEBUG: Trying rule: git_pull_uncommitted_changes; took: 0:00:00.000007 DEBUG: Trying rule: git_push; took: 0:00:00.000007 DEBUG: Trying rule: git_push_different_branch_names; took: 0:00:00.000006 DEBUG: Trying rule: git_push_pull; took: 0:00:00.000006 DEBUG: Trying rule: git_push_without_commits; took: 0:00:00.000007 DEBUG: Trying rule: git_rebase_merge_dir; took: 0:00:00.000006 DEBUG: Trying rule: git_rebase_no_changes; took: 0:00:00.000006 DEBUG: Trying rule: git_remote_delete; took: 0:00:00.000007 DEBUG: Trying rule: git_remote_seturl_add; took: 0:00:00.000007 DEBUG: Trying rule: git_rm_local_modifications; took: 0:00:00.000006 DEBUG: Trying rule: git_rm_recursive; took: 0:00:00.000006 DEBUG: Trying rule: git_rm_staged; took: 0:00:00.000007 DEBUG: Trying rule: git_stash; took: 0:00:00.000007 DEBUG: Trying rule: git_tag_force; took: 0:00:00.000006 DEBUG: Trying rule: git_two_dashes; took: 0:00:00.000006 DEBUG: Trying rule: go_run; took: 0:00:00.000008 DEBUG: Trying rule: go_unknown_command; took: 0:00:00.000008 DEBUG: Trying rule: gradle_no_task; took: 0:00:00.000009 DEBUG: Trying rule: gradle_wrapper; took: 0:00:00.000009 DEBUG: Trying rule: grep_arguments_order; took: 0:00:00.000009 DEBUG: Trying rule: grep_recursive; took: 0:00:00.000009 DEBUG: Trying rule: grunt_task_not_found; took: 0:00:00.000009 DEBUG: Trying rule: gulp_not_task; took: 0:00:00.000009 DEBUG: Trying rule: has_exists_script; took: 0:00:00.000010 DEBUG: Trying rule: heroku_multiple_apps; took: 0:00:00.000010 DEBUG: Trying rule: heroku_not_command; took: 0:00:00.000008 DEBUG: Trying rule: hostscli; took: 0:00:00.000012 DEBUG: Trying rule: ifconfig_device_not_found; took: 0:00:00.000009 DEBUG: Trying rule: java; took: 0:00:00.000009 DEBUG: Trying rule: javac; took: 0:00:00.000009 DEBUG: Trying rule: lein_not_task; took: 0:00:00.000012 DEBUG: Trying rule: ln_no_hard_link; took: 0:00:00.000005 DEBUG: Trying rule: ln_s_order; took: 0:00:00.000005 DEBUG: Trying rule: ls_all; took: 0:00:00.000009 DEBUG: Trying rule: ls_lah; took: 0:00:00.000007 DEBUG: Trying rule: man; took: 0:00:00.000009 DEBUG: Trying rule: mercurial; took: 0:00:00.000009 DEBUG: Trying rule: mkdir_p; took: 0:00:00.000005 DEBUG: Trying rule: mvn_no_command; took: 0:00:00.000008 DEBUG: Trying rule: mvn_unknown_lifecycle_phase; took: 0:00:00.000008 DEBUG: Trying rule: no_such_file; took: 0:00:00.000272 DEBUG: Trying rule: open; took: 0:00:00.000015 DEBUG: Trying rule: pacman_invalid_option; took: 0:00:00.000016 DEBUG: Trying rule: php_s; took: 0:00:00.000011 DEBUG: Trying rule: pip_install; took: 0:00:00.000013 DEBUG: Trying rule: pip_unknown_command; took: 0:00:00.000014 DEBUG: Trying rule: prove_recursively; took: 0:00:00.000009 DEBUG: Trying rule: python_command; took: 0:00:00.000005 DEBUG: Trying rule: python_execute; took: 0:00:00.000010 DEBUG: Trying rule: python_module_error; took: 0:00:00.000001 DEBUG: Trying rule: quotation_marks; took: 0:00:00.000001 DEBUG: Trying rule: rails_migrations_pending; took: 0:00:00.000001 DEBUG: Trying rule: react_native_command_unrecognized; took: 0:00:00.000009 DEBUG: Trying rule: remove_shell_prompt_literal; took: 0:00:00 DEBUG: Trying rule: remove_trailing_cedilla; took: 0:00:00.000001 DEBUG: Trying rule: rm_dir; took: 0:00:00.000005 DEBUG: Trying rule: scm_correction; took: 0:00:00.000009 DEBUG: Trying rule: sed_unterminated_s; took: 0:00:00.000009 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.000002 sudo pacman -S test [enter/↑/↓/ctrl+c] DEBUG: PYTHONIOENCODING: utf-8 DEBUG: Total took: 0:00:06.591425 bash: sudo: command not found

Anything else you think is relevant:

add support for doas pls
0018akhil commented 2 years ago

Hi @Asimopostin Which package were you installing?

0018akhil commented 2 years ago

Support for doas is already present. You just need to add root permission in doas.conf file.

Switch as root user

add permit [user] as root in /etc/doas.conf cat > "permit [user] as root" > doas.conf