Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147542772
D53748.1783710318.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
537 B
Referenced Files
None
Subscribers
None
D53748.1783710318.diff
View Options
diff --git a/usr.bin/fortune/datfiles/freebsd-tips b/usr.bin/fortune/datfiles/freebsd-tips
--- a/usr.bin/fortune/datfiles/freebsd-tips
+++ b/usr.bin/fortune/datfiles/freebsd-tips
@@ -860,3 +860,11 @@
$ 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>
+%
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 10, 7:05 PM (16 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29063879
Default Alt Text
D53748.1783710318.diff (537 B)
Attached To
Mode
D53748: freebsd-tips: Add a shell function for laptops
Attached
Detach File
Event Timeline
Log In to Comment