Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 830 Bytes

k.org

File metadata and controls

45 lines (31 loc) · 830 Bytes

Extension: k

k is a function that allows one to quickly jump to directories based off simple pattern matching.

Usage

Jumping to known locations

qbit@tal[0]:~$ k ohmy
qbit@tal[0]:~/src/ohmyksh got:(master)$ k wip
qbit@tal[0]:/usr/ports/openbsd-wip got:(master) git:(master)$ 

Storing locations for later jumping

cd ~/directory/with/long/name
k

After running k, the current directory will be stored in ~~/.k~.

From this point on, you can reach the directory from anywhere by running k long name.

Removing locations from jump list

k long name
k rm

Listing jumpable directories

k ls

Sorting / removing duplicates

k clean