This website works better with JavaScript.
Home
Explore
Help
Sign In
brennen
/
bpb-kit
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
1
Releases
0
Wiki
Activity
Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
355
Commits
6
Branches
6.8 MiB
Branch:
exuberance
main
master
escalation
externality
exuberance
inertia_intel_nuc
Branches
Tags
${ item.name }
Create branch
${ searchTerm }
from 'exuberance'
${ noResults }
bpb-kit
/
home
/
bin
/
comment
5 lines
92 B
Raw
Permalink
Normal View
History
bin/comment: a no-op for including comments in shell history The idea here is that periodically you do something like: $ comment "messing with wifi settings" $ comment "trying out new file managers" And then you've got some human-readable context in your shell history. This is the stub of a larger, better idea, I think.
8 years ago
#!/usr/bin/env bash
if (( $# == 0 )); then
grep --context 2 '^comment .*' ~/.histfile
fi