Skip to content
/ fj Public

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

License

Notifications You must be signed in to change notification settings

pders01/fj

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published