ohmyksh/extensions/k.org
2021-03-11 16:51:09 +00:00

830 B

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