denisidoro / navi

An interactive cheatsheet tool for the command-line
Apache License 2.0
14.61k stars 489 forks source link

Unable to execute some custom commands #886

Open darkelfzdy opened 4 months ago

darkelfzdy commented 4 months ago

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:

welcome[bot] commented 4 months ago

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! :)