chmln / sd

Intuitive find & replace CLI (sed alternative)
MIT License
5.84k stars 138 forks source link

sudo sd command not found #294

Closed dougg0k closed 7 months ago

dougg0k commented 7 months ago

Hi,

If I use sd normally it seem to work, but if I apply sudo before it due to permission issue, this is what happens

sudo: sd: command not found

dev-ardi commented 7 months ago

How did you install it? which sd If it's not in root's path you won't be able to run it with sudo.

dougg0k commented 7 months ago
nu ❯ which sd
╭───┬─────────┬──────────────────────────────┬──────────╮
│ # │ command │             path             │   type   │
├───┼─────────┼──────────────────────────────┼──────────┤
│ 0 │ sd      │ /home/user/.cargo/bin/sd     │ external │
╰───┴─────────┴──────────────────────────────┴──────────╯

That explains it.