YiNNx / cmd-wrapped

👩‍💻 A CLI Tool for Command Line Insights
https://crates.io/crates/cmd-wrapped
MIT License
1.01k stars 27 forks source link

Some errors on Manjaro Linux #37

Closed ericzhang-debug closed 1 month ago

ericzhang-debug commented 1 month ago

Hello, I meet some errors on Manjaro Linux(Arch Linux). It said that the model of "OS" was not found. I tried to install via AUR and had tried the cmd-wrapped and cmd-wrapped-bin. Bellow is error log: image

Bellow is system information of my computer: image

Thank you!

YiNNx commented 1 month ago

What's the output of cmd-wrapped --version and echo $HISTFILE ?

ericzhang-debug commented 1 month ago

image

YiNNx commented 1 month ago

It looks like your /home/eric/.zhistory file do not exist :thinking:

image

ericzhang-debug commented 1 month ago

But my shell was bash and it showed the same error when I execute cmd-wrapped -s bash. When I execute history , it showed something rigth.

YiNNx commented 1 month ago

image

Seems like you have set your bash history file as /home/eric/.zhistory, and the file path do not exist. Both check your /home/eric/.zhistory and /home/eric/.bash_history

ericzhang-debug commented 1 month ago

Both are not existed.

YiNNx commented 1 month ago

Both are not existed.

It looks like there’s an issue with your shell history persistence settings. To fix this, you’ll need to make sure that $HISTFILE is pointing to the right history file path.

See https://www.gnu.org/software/bash/manual/html_node/Bash-History-Facilities.html

When the shell starts up, the history is initialized from the file named by the HISTFILE variable (default ~/.bash_history)... If HISTFILE is unset, or if the history file is unwritable, the history is not saved.

This error isn’t related to cmd-wrapped, so I’ll go ahead and close this issue. Thanks for your patience!