Skip to content

Commit

Permalink
Merge pull request #248 from s11s11/patch-1
Browse files Browse the repository at this point in the history
Update README.md troubleshooting section
  • Loading branch information
MordechaiHadad authored Jan 23, 2025
2 parents 93c82b6 + 8ff30ce commit a9473e7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -333,13 +333,13 @@ bob complete powershell >> ${env:USERPROFILE}\Documents\WindowsPowerShell\Micros
## 🛠️ Troubleshooting

`sudo: nvim: command not found`
This error can be caused when `secure_path` is enabled in `/etc/sudoers` like in distros such as Fedora Workstation 37, possible workarounds:
This error can be caused when `secure_path` is enabled in `/etc/sudoers` like in distros such as Fedora and Ubuntu. Possible workarounds:

1. disable `secure_path`
2. run `sudo env "PATH=$PATH" nvim`
3. set `$SUDO_USER` to location of bob nvim binary: `SUDO_EDITOR='/home/user/.local/share/bob/nvim-bin/nvim`
1. Set `$VISUAL` to location of bob nvim binary and use `sudoedit` instead of `sudo nvim` when running bob as sudo
2. Run `sudo env "PATH=$PATH" nvim`
3. Set `$SUDO_USER` to location of bob nvim binary: `SUDO_EDITOR='/home/user/.local/share/bob/nvim-bin/nvim`

These workarounds were devised by @nfejzic, thanks to him.
These workarounds were devised by @nfejzic and @s11s11, thanks to them.

## :heart: Credits And Inspiration

Expand Down

0 comments on commit a9473e7

Please sign in to comment.