Add system-info macOS user agent
The `system-info` directory contains scripts and configuration files to install and remove a `launchd` user agent on macOS which collects information about the system and outputs it to the file `~/.cache/tmux/system-info`. This file is then read periodically by `tmux` and the contents displayed in the status line.
This commit is contained in:
8
system-info/install.sh
Executable file
8
system-info/install.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
script_dir=`dirname $0`
|
||||
|
||||
if [ `uname` = Darwin ]; then
|
||||
cp $script_dir/system-info.plist ~/Library/LaunchAgents/system-info.plist
|
||||
launchctl load -w ~/Library/LaunchAgents/system-info.plist
|
||||
fi
|
||||
Reference in New Issue
Block a user