Skip to content

Commit 61dbbd0

Browse files
committed
added problem and solution paragraph
1 parent 501be33 commit 61dbbd0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ lc-listcommands-bash
33

44
A bash script for providing a "list commands previously used in this directory" command.
55

6+
### The Problem and Solution
7+
8+
I can never remember the exact commands I need to run whenever I'm in certain directories. Things like `virtualenv/bin/activate`, `apache/bin/restart`, `./manage.py runserver`, `git clone [email protected]:obscure-git-repository.git` and hundreds of other miscellaneous commands that I do during development and sysadmining. I could look in my bash\_history, but it would list all commands and not filter it by my current directory.
9+
10+
I routintely type '`ls`' when I enter directories, and I wished I could do something like '`lc`' for "list commands I've used in this directory". Finally, at the Seattle beer&&code meetup, a small script was born.
11+
612
### Usage
713

814
**Do some commands:**
@@ -61,4 +67,3 @@ Usage would be: `[Shift]` (or another meta key) `+ [Up]` to cycle to the most re
6167
3. Make listcommands.sh's `PROMPT_COMMAND` play nice with other custom `PROMPT_COMMAND`.
6268

6369
4. Add a 10k line limit to `~/.lc_history file`
64-

0 commit comments

Comments
 (0)