SkillAgentSearch skills...

Fdb

Path frecency database

Install / Use

/learn @baskerville/Fdb
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Bootstrap

fdb -z

Examples

ZSH configuration:

precmd() {
	[ "$PWD" -ef "$HOME" ] || fdb -a "$PWD"
}

Shell function for jumping to most frecent directory that matches the patterns given as arguments:

z() {
	local dir=$(fdb -q "$@" | head -n 1)
	[ -z "$dir" ] && return 1
	cd "$dir" || fdb -d "$dir"
}

Frecency

The frecency is computed as:

        H
—————————————————
 0.25 + 3·10⁻⁶·A

Where H is the number of hits, and A the age.

Environment variables

  • FDB_DB_PATH.
  • FDB_HISTORY_SIZE.
View on GitHub
GitHub Stars10
CategoryData
Updated1y ago
Forks1

Languages

Rust

Security Score

60/100

Audited on Jul 23, 2024

No findings