denisidoro/navi

Unable to execute some custom commands

Opened this issue · 1 comments

Describe the bug
Unable to execute some custom commands.I have set up two custom commands in the cheatsheet. The command "env" does not provide proper feedback when executed, while the other do not give any feedback but actually did not execute successfully.
My custom command is as follows:

% ping

# test env                 
env | grep -i proxy 

# on_proxy    
export ALL_PROXY=http://127.0.0.1:7890 

To Reproduce
Steps to reproduce the behavior:

  1. navi

  2. Execute the command "env | grep -i proxy".

  3. Feedback information: NAVI_PREVIEW_INITIAL_SNIPPET=env | grep -i proxy

  4. navi

  5. Execute the comman "export ALL_PROXY=http://127.0.0.1:7890 "

  6. There is no information in the database, but after checking the contents of the environment variables, it did not execute successfully.

Expected behavior
The command can be executed successfully.

Versions:

  • OS: Armbian-unofficial 24.2.0-trunk bullseye(Debian 11)
  • Shell Version :bash 5.1.4

Thanks for opening your first issue here! In case you're facing a bug, please update navi to the latest version first. Maybe the bug is already solved! :)