mirror of
https://github.com/theniceboy/.config.git
synced 2026-02-22 04:45:39 +08:00
opencode: only load tracker plugin when ran as op
This commit is contained in:
parent
3e14a478a6
commit
e0122ed654
2 changed files with 7 additions and 1 deletions
|
|
@ -47,7 +47,6 @@ _op_run() {
|
|||
fi
|
||||
|
||||
local -a to_link=(
|
||||
plugin
|
||||
history
|
||||
sessions
|
||||
logs
|
||||
|
|
@ -66,6 +65,13 @@ _op_run() {
|
|||
fi
|
||||
done
|
||||
|
||||
mkdir -p "$tmp_home/plugins"
|
||||
local f
|
||||
for f in "$base_home/plugins"/* "$base_home/tui-plugins"/*; do
|
||||
[ -e "$f" ] || continue
|
||||
ln -s "$f" "$tmp_home/plugins/" 2>/dev/null
|
||||
done
|
||||
|
||||
if ! mkdir -p "$tmp_home/command"; then
|
||||
trap - EXIT INT TERM
|
||||
eval "$cleanup_cmd"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue