/fj

Alias directories for faster access. There are more general solutions for this, but this is mine (mainly for learning C).

Primary LanguageCGNU General Public License v3.0GPL-3.0

fj

Description

fj is a command-line tool that allows you to quickly navigate to frequently used directories using aliases.

Usage

To use fj, simply type fj <ALIAS> in your terminal to navigate to the directory associated with the specified alias.

Options

  • -c, --complete: Displays a list of available completions for the provided alias, allowing you to choose from them interactively (requires gum but you could just replace it in the fj shell function).

Example: fj projects -c

Build Dependencies

Installation

Building from Source

  1. Clone this repository to your local machine:
git clone https://github.com/pders01/fj.git
  1. Change into the directory:
cd fj
  1. Build the executable:
make
  1. Install fj:
make install
  1. Source your shell configuration:
$ source ~/.{bashrc,zshenv}
  1. Add some aliases to your $HOME/.alias.d/paths file.
alias projects=$HOME/Projects

NOTE

If you use anything other than bash or zsh just tweak the shell function to your needs.