Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.82k stars 237 forks source link

support [t]csh #92

Open dmd opened 4 years ago

dmd commented 4 years ago

Please add a [t]csh version of the launcher script.

kaushalmodi commented 4 years ago

This is the broot generated bash function:

function br {
    f=$(mktemp)
    (
    set +e
    broot --outcmd "$f" "$@"
    code=$?
    if [ "$code" != 0 ]; then
        rm -f "$f"
        exit "$code"
    fi
    )
    code=$?
    if [ "$code" != 0 ]; then
    return "$code"
    fi
    d=$(<"$f")
    rm -f "$f"
    eval "$d"
}

Just for quickly trying out broot on tcsh, this works: broot --outcmd `mktemp`.

Canop commented 4 years ago

If somebody with both [t]csh and rust abilities wants to help, this is probably an easy task. bash (like) installations are managed here.