-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a whole load of stuff so I can release 1.1
- Loading branch information
Showing
4 changed files
with
75 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.local_bash_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Local History for Bash | ||
|
||
# Installation | ||
Run `./install.sh` | ||
|
||
|
||
# Why? | ||
Shell histories can get cluttered easily, and this helps by letting you automatically switch to history files in the current project that you are working on. | ||
|
||
# Features | ||
- Automatically detects a `.local_bash_history` file in your current directory and switches to it | ||
- Saves history automatically | ||
- `lht` tool to manage the local history files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#~/bin/bash | ||
|
||
mkdir -p ~/.local/bin | ||
cp localhistory.sh ~/.local/bin/localhistory.sh | ||
chmod +x ~/.local/bin/localhistory.sh | ||
# Do not inject into .bashrc twice; checked by if variables set by the script are set | ||
if [ -z "$__LOCALHISTORY_FILENAME" ]; then | ||
echo -e "\n~/.local/bin/localhistory.sh --prompt-command" >> ~/.bashrc | ||
fi | ||
. localhistory.sh | ||
|
||
echo "Installed local history script" | ||
echo "Run \"lht help\" for help" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters