mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-23 13:29:15 +08:00
enable br
This commit is contained in:
parent
f2898ced51
commit
53c94c46ee
@ -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 =
|
||||
[
|
||||
|
Loading…
Reference in New Issue
Block a user