Closed webkernel closed 3 years ago
Show your shell config (.bashrc
, .zshrc
etc.)
Oof, can you send it as a file/gist/etc.?
Also you should call source <(silver init)
in your .zshrc
and I see you are setting PROMPT and RPROMPT, they might conflict
Did you install silver from crates.io or from git?
I installed with cargo install silver
Try cargo install --git https://github.com/reujab/silver.git
Just installed with cargo install --git https://github.com/reujab/silver.git
Now I have a different error:
thread 'main' panicked at 'unknown $SILVER_SHELL: "". Supported shells: bash, zsh, fish, powershell', src/main.rs:65:18
note: run with RUST_BACKTRACE=1
environment variable to display a backtrace
Do you have SILVER_SHELL
set?
Besides Rust and silver install all I have is this on .zshrc
SILVER_LEFT=(dir:blue:black git:green:black) SILVER_RIGHT=(status:white:black cmdtime:magenta:black env:green:black:SILVER_SHELL) export SILVER_SHELL=zsh
smh silver
is not able to see your SILVER_SHELL
. Try renaming your .zshrc
to .zshrc.bak
so it's not sourced and create a new .zshrc
with
SILVER_LEFT=(dir:blue:black git:green:black)
SILVER_RIGHT=(status:white:black cmdtime:magenta:black env:green:black:SILVER_SHELL)
export SILVER_SHELL=zsh
source <(silver init)
then restart terminal
Great! It works. Many thanks!
Then the issue is in .zshrc.bak
, maybe some other prompt conflicting with silver or weird zsh settings
I followed instructions and after checking with source <(silver init) :
thread 'main' panicked at 'invalid argument, ', /home/webkernel/.cargo/registry/src/github.com-1ecc6299db9ec823/silver-1.1.0/src/print.rs:11:13 note: run with
RUST_BACKTRACE=1
environment variable to display a backtrace $(git_prompt_string)