elvish_config/aliases/br.elv

18 lines
256 B
Plaintext
Raw Normal View History

2020-03-13 14:03:36 +00:00
#alias:new br e:broot -dp
#fn br [@_args]{ e:broot -dp $@_args }
fn br [@_args]{
f = (mktemp)
try {
e:broot --outcmd $f -dp $@_args
} except e {
rm -f $f
return
}
try {
-source $f
} except e {
} finally {
rm -f $f
}
}