ICT: Diary
D: 28 W: 05
| < | March 2014 | > | ||||
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 | 31 | |||||
[ < ]
Tuesday, 18 March 2014 [ >
]
Hack #1
Getting the most of the default shell: although the hack is written for FreeBSD's tcsh. The sections
- History and Auto-completion
- Editing and Navigating the Command Line
- Learning from Your Command History
- Silencing Auto-complete
history
By default the ksh shell found in OpenBSD doesn't set HISTFILE, thus history is lost on log out - which is useful security measure - as history files can record all sorts of useful information :~) [1] grep your history file for your password :~/
Added
HISTFILE=~/.sh_history to my .kshrc file. I had tried HISTFILE=~/.history.$( tty | sed 's;.*/;;')
which created files like
-rw------- 1 fred staff 71 Mar 18 15:33 .history.ttyp8
but I decided this would create to many history files.
$Id: dates.htm,v 1
$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $