News for hackers. Stuff that matters.
Re:Fish Shell 3.5.0 by 8ytecoder on Thursday June 16, 2022 @02:02PM (#31769097)
I use this a lot in my scripts - handy when you want to capture the output or execute a command in a different directory.
Re:Fish Shell 3.5.0 by lytedev on Thursday June 16, 2022 @08:17PM (#31772592)

    set output (echo captured)
    echo $output
    > captured
And if you wanna run a command in another dir:

    pushd other_dir
    run_command
    popd