Commit Graph

5 Commits

Author SHA1 Message Date
perfectra1n
b0644d7372 Test to see if the binary already exists. 2023-02-19 21:57:12 -08:00
perfectra1n
626253d791
Fix log messages when attempting to rebuild the plugin.
Fix log messages when attempting to rebuild the plugin, as the previous messages were showing the incorrect output if `cmake` failed, or if `make` failed to execute.
2023-02-19 18:38:46 -08:00
Hanfei Shen
26b53ea94b fix tmux init 2017-04-22 20:38:09 +08:00
Nathan Daly
5c37494d11 Added error message printing to the tmux plugin:
Added output error messsages to the tmux plugin file so that if either
cmake or make fail, you can find out why.

For example, if cmake is missing, the output looks like this:

```
'cmake /usr/local/google/home/nhdaly/.tmux/plugins/tmux-mem-cpu-load' failed.
/usr/local/google/home/nhdaly/.tmux/plugins//tmux-mem-cpu-load/tmux-mem-cpu-load.plugin.tmux: line 23: cmake: command not found
```

If there is some error during make, the output looks like this:

```
tmux-mem-cpu-load failed to build.
make: <make output error message>
```
2016-09-27 18:24:13 -05:00
Nathan Daly
58564ae6b7 Added .tmux script so the plugin works with tpm.
Now the plugin can be installed via tmux-plugins/tpm in addition to
being installed through zsh's antigen package manager.

It now only calls `make install` when installed through antigen; the
tmux plugin automatically compiles the binary, but leaves it in the
plugin directory.

This also allows skipping the "if exists" check, which means plugin
updates can also automatically rebuild any changes to the compiled part
of the plugin.

Updated the README to reflect this new install option.

This is part of Issue #43.
2016-08-24 11:13:23 -05:00