https://github.com/andresterba/go-jump
https://github.com/andresterba/go-jump
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andresterba/go-jump
- Owner: andresterba
- License: mit
- Created: 2021-02-12T20:43:32.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-06-08T06:56:16.000Z (about 4 years ago)
- Last Synced: 2024-06-21T06:18:36.080Z (almost 2 years ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-jump
`go-jump` is a cli utility to jump to recently visited directories.
It hooks into your shell to count all visitied directories.
The database structure is very simple:
```sh
Counter Path LastVisitedTime
1337 /home/me/Code 2021-11-22T12:25:33+01:00
```
## Usage
Quick integration in `zsh`:
```sh
function j() {
if [ "$1" != "" ]
then
foundPath=`go-jump $1`
cd $foundPath
else
echo "provide path"
fi
}
chpwd_go_jump() {
go-jump add $PWD
}
add-zsh-hook chpwd chpwd_go_jump
```
After that simply use `j documents` to search for `documents` and jump into the folder if
it already exists in the database.