broot
broot copied to clipboard
Add support for Elvish
Homepage | GitHub
Module
~/.elvish/lib/broot.elv
# Broot
# https://dystroy.org/broot/
fn br [@arguments]{
path = (mktemp)
broot --out $path $@arguments
cd (cat $path)
rm -f $path
}
Configuration
~/.elvish/rc.elv
# Modules
use broot
# Functions
fn br [@arguments]{
broot:br $@arguments
}
Can you come to my chat and discuss this ?
https://miaou.dystroy.org/3490
Updated version for the latest elvish and broot versions
fn br {|@arguments|
var path = (mktemp)
broot --outcmd $path $@arguments
if ?(test -s $path) {
eval (cat $path)
}
e:rm -f $path
}