mirror of
https://github.com/opnsense/src.git
synced 2026-07-16 12:33:07 -04:00
freebsd-tips: Add a shell function for laptops
MFC after: 3 days Reviewed by: pauamma_gundo.com Differential Revision: https://reviews.freebsd.org/D53748 (cherry picked from commit 42d9ae4945f281d12f3ef96cdbd7356e067f8b18)
This commit is contained in:
parent
2da71ee296
commit
f0bb9d28eb
1 changed files with 8 additions and 0 deletions
|
|
@ -860,3 +860,11 @@ When netstat reports every 8 seconds, it tells traffic in bits per second:
|
|||
|
||||
$ netstat -I bge0 8
|
||||
%
|
||||
Using vt(4) on a laptop? Try this sh(1) function. It provides an "h"
|
||||
command that prints the last 22 commands executed, the time, remaining
|
||||
battery life, and current working directory:
|
||||
|
||||
h() { fc -l -22; printf "%s\n" "`date +%H:%M` -- `apm -l`% -- `pwd`"; }
|
||||
|
||||
-- Alexander Ziaee <ziaee@FreeBSD.org>
|
||||
%
|
||||
|
|
|
|||
Loading…
Reference in a new issue