Added a check to see if the file has already been installed.

This commit is contained in:
Travis Heller 2015-09-30 11:51:53 -07:00
parent 79e16ec38b
commit 7cc6ff35cc
2 changed files with 10 additions and 5 deletions

@ -83,7 +83,9 @@ Install
Build and Install Using [Antigen](https:/github.com/zsh-users/antigen) Build and Install Using [Antigen](https:/github.com/zsh-users/antigen)
-------- --------
Include the bundle in your ``.zshrc`` Include the bundle in your ``.zshrc``
``antigen bundle thewtex/tmux-mem-cpu-load`` ``antigen bundle thewtex/tmux-mem-cpu-load``
Configuring tmux_ Configuring tmux_

@ -1,7 +1,10 @@
# vim: tabstop=2 shiftwidth=2 expandtab textwidth=80 linebreak wrap # vim: tabstop=2 shiftwidth=2 expandtab textwidth=80 linebreak wrap
pushd ${0:a:h} #Pushd to the directory where this file is located. if [ ! -s /usr/local/bin/tmux-mem-cpu-load ];
cmake . then
make pushd ${0:a:h} #Pushd to the directory where this plugin is located.
sudo make install cmake .
popd make
sudo make install
popd
fi