Skip to content

Conversation

@Filriya
Copy link
Contributor

@Filriya Filriya commented Mar 30, 2020

It is a very nice plugin for me. Thank you.

Unfortunately, it is not possible to display the memory usage on macOS.
This is because macOS does not have a free command.

Instead, macOS has a vm_stat command. This is different from the linux vmstat command, but it can be used in such cases.

This is the code that uses the vm_stat command to display memory on macOS. It works well in my environment. I would be glad if it would be helpful.

The display result of the vm_stat command is difficult to understand for me. I looked into it as much as I could. And it looks like it's working. However, I may have made a mistake.

Filriya and others added 3 commits April 2, 2020 13:34
Co-Authored-By: Casper da Costa-Luis <casper.dcl@physics.org>
Co-Authored-By: Casper da Costa-Luis <casper.dcl@physics.org>
@Filriya Filriya requested a review from casperdcl April 2, 2020 05:10
Copy link
Collaborator

@casperdcl casperdcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestions

@casperdcl casperdcl merged commit 2d43413 into tmux-plugins:master Apr 2, 2020
@casperdcl
Copy link
Collaborator

Thanks @Filriya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants