initial commit with AI Code
This commit is contained in:
12
plugin.tmux
Normal file
12
plugin.tmux
Normal file
@@ -0,0 +1,12 @@
|
||||
# Binary bauen (still). Wenn go fehlt: überspringen
|
||||
run-shell "cd '#{plugin_path}' && GO111MODULE=on go mod tidy >/dev/null 2>&1 || true"
|
||||
run-shell "cd '#{plugin_path}' && GO111MODULE=on go build -ldflags='-s -w' -o bin.sysusage ./cmd/monitor >/dev/null 2>&1 || true"
|
||||
|
||||
# tmux-Variable setzen: #{sysusage}
|
||||
set -g @sysusage_cmd '#{plugin_path}/bin.sysusage'
|
||||
set -g status-interval 2
|
||||
|
||||
# Du kannst später im Theme einfach schreiben:
|
||||
# set -g status-right "... #{sysusage} ..."
|
||||
set -g -F @sysusage '#(@sysusage_cmd)'
|
||||
|
||||
Reference in New Issue
Block a user