You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config nu --doc | nu-highlight | less -R | batpipe
Returns this:
There is no -l option ("less --help" for help)
# batpipe, a bat-based preprocessor for less and bat.
# Version: 2024.08.24
# Homepage: https://github.com/eth-p/bat-extras
# Copyright (C) 2019-2021 eth-p | MIT License
#
# To use batpipe, eval the output of this command in your shell init script.
LESSOPEN="|/opt/homebrew/Cellar/bat-extras/2024.08.24/bin/batpipe %s";
export LESSOPEN;
unset LESSCLOSE;
# The following will enable colors when using batpipe with less:
LESS="$LESS -R";
BATPIPE="color";
export LESS;
export BATPIPE;
which of course is not valid nu code.
Everything I've tried fails misserably :(
The text was updated successfully, but these errors were encountered:
To get that handled dynamically, you should be able to use something like:
batpipe|lines# convert to Nushell list|where$it=~'='# find lines with an assignment (equals)|parse'{var}={val};'# turn it into a table with var and value|transpose-dr# turn that into a record|load-env# load that record into the environment
Question
Title is selfdescriptive.
Additional context and details
Trying
Returns this:
which of course is not valid nu code.
Everything I've tried fails misserably :(
The text was updated successfully, but these errors were encountered: