dylanjcastillo / shell-genie

Your wishes are my commands
MIT License
478 stars 36 forks source link

Opening files through nano with sudo #15

Open Kiraaliraa opened 11 months ago

Kiraaliraa commented 11 months ago

Whenever trying to open permissioned files through nano using sudo genie gets stuck. I've tried several different ones and none worked. With fstab I couldn't even close it with "ctl+x" and when closing others - for example:

~> shell-genie ask "open grub configuration through nano"
Command: `sudo nano /etc/default/grub`
Do you want to run the command? [y/n]: y
/bin/sh: line 1: $'\E[?2004h\E[?1049h\E[22;0;0t\E[1;21r\E(B\E[m\E[4l\E[?7h\E[39;49m\E[?1h\E=\E[?1h\E=\E[?25l\E[39;49m\E(B\E[m\E[H\E[2J\E[19;34H\E(B\E[0;7m[': command not found