Closed omnigenous closed 3 months ago
@CarterLi I tried building from https://github.com/fastfetch-cli/fastfetch/commit/10fd7d61ae06aea581725f251abb9976eea99703 and it still returns fastfetch
(I am running ./run.sh
)
{ "exe": "./fastfetch", "exeName": "fastfetch", "exePath": "/home/user/github/fastfetch/build/fastfetch", "pid": 32499, "ppid": 32301, "processName": "fastfetch", "prettyName": "fastfetch", "version": "", "tty": 4 }
How did you get this output?
@CarterLi Made my terminal really wide and:
{
"type": "command",
"key": "custom-shell",
"text": "echo my shell is $(fastfetch -s shell --format json | jq -r '.[0].result')"
},
Works for me
BTW why do you want to use command
in this case? What about fastfetch --shell-format 'my shell is {pretty-name}'
?
Works for me
Yeah, I'm stupid. Had to replace fastfetch -s shell
with /path/to/fork/fastfetch/build/fastfetch -s shell
inside config file
BTW why do you want to use
command
in this case? What aboutfastfetch --shell-format 'my shell is {pretty-name}'
?
It was just for sake of an example. I want to have my terminal and shell on a same line. As far as I'm aware the only way to achieve that is to use command
.
Thank you for fixing this :heart:
General description of bug:
fastfetch
returned when runningfastfetch -s shell --format json
in custom commandWorkaround
Output of
fastfetch --list-features
: