enable br

This commit is contained in:
陈浩南 2023-07-09 22:44:59 +08:00
parent f2898ced51
commit 53c94c46ee

View File

@ -10,6 +10,21 @@
HYPHEN_INSENSITIVE="true"
export PATH=~/bin:$PATH
function br
{
local cmd cmd_file code
cmd_file=$(mktemp)
if broot --outcmd "$cmd_file" "$@"; then
cmd=$(<"$cmd_file")
command rm -f "$cmd_file"
eval "$cmd"
else
code=$?
command rm -f "$cmd_file"
return "$code"
fi
}
'';
plugins =
[