Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pders01/fj
Alias directories for faster access. There are more general solutions for this, but this is mine (mainly for learning C).
https://github.com/pders01/fj
Last synced: 17 days ago
JSON representation
Alias directories for faster access. There are more general solutions for this, but this is mine (mainly for learning C).
- Host: GitHub
- URL: https://github.com/pders01/fj
- Owner: pders01
- License: gpl-3.0
- Created: 2024-04-01T10:16:42.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-04-03T11:07:21.000Z (9 months ago)
- Last Synced: 2024-04-04T11:52:39.892Z (9 months ago)
- Language: C
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 ` 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](https://github.com/charmbracelet/gum) but you could just replace it in the fj shell function).Example:
`fj projects -c`## Build Dependencies
- [uthash](https://github.com/troydhanson/uthash)## Installation
### Building from Source
1. Clone this repository to your local machine:
```sh
git clone https://github.com/pders01/fj.git
```2. Change into the directory:
```sh
cd fj
```3. Build the executable:
```sh
make
```4. Install fj:
```sh
make install
```5. Source your shell configuration:
```sh
$ source ~/.{bashrc,zshenv}
```6. Add some aliases to your `$HOME/.alias.d/paths` file.
```sh
alias projects=$HOME/Projects
```### NOTE
If you use anything other than bash or zsh just tweak the shell function to your needs.