Merge pull request #28 from allcatsarebeautiful/master
Allow Easy Installation Via Antigen
This commit is contained in:
commit
f80a026c45
@ -81,6 +81,14 @@ Install
|
||||
make install
|
||||
logout
|
||||
|
||||
Build and Install Using `Antigen`_
|
||||
-------
|
||||
|
||||
Include the bundle in your ``.zshrc``
|
||||
|
||||
::
|
||||
|
||||
antigen bundle thewtex/tmux-mem-cpu-load
|
||||
|
||||
Configuring tmux_
|
||||
=================
|
||||
@ -133,5 +141,6 @@ Contributions from:
|
||||
.. _tmux: http://tmux.sourceforge.net/
|
||||
.. _CMake: http://www.cmake.org
|
||||
.. _`project homepage`: http://github.com/thewtex/tmux-mem-cpu-load
|
||||
.. _`Antigen`: https://github.com/zsh-users/antigen
|
||||
.. _`terminals with 256 color support`: http://misc.flogisoft.com/bash/tip_colors_and_formatting#terminals_compatibility
|
||||
.. _`Pawel 'l0ner' Soltys` : http://l0ner.github.io/
|
||||
|
25
tmux-mem-cpu-load.plugin.zsh
Normal file
25
tmux-mem-cpu-load.plugin.zsh
Normal file
@ -0,0 +1,25 @@
|
||||
# vim: tabstop=2 shiftwidth=2 expandtab textwidth=80 linebreak wrap
|
||||
#
|
||||
# Copyright 2012 Matthew McCormick
|
||||
# Copyright 2015 Pawel 'l0ner' Soltys
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
if [ ! -s /usr/local/bin/tmux-mem-cpu-load ];
|
||||
then
|
||||
pushd ${0:a:h} #Pushd to the directory where this plugin is located.
|
||||
cmake .
|
||||
make
|
||||
sudo make install
|
||||
popd
|
||||
fi
|
Loading…
Reference in New Issue
Block a user