Skip to content

Commit

Permalink
Fix cutting of Memory information on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pantuza committed Jun 3, 2020
1 parent 11e77c9 commit a173452
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fish_greeting.fish
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function show_mem_info -d "Prints memory information"
set --local total_memory ""

if [ "$os_type" = "Linux" ]
set total_memory (free -h | grep "Mem" | cut -d " " -f 12)
set total_memory (free -h | grep "Mem" | cut -d " " -f 11)

else if [ "$os_type" = "Darwin" ]
set total_memory (system_profiler SPHardwareDataType | grep "Memory:" | cut -d ":" -f 2 | tr -d " ")
Expand Down

0 comments on commit a173452

Please sign in to comment.