Nouveau paquet - ff - gestionnaire d'alias de dossier
parent
bc97643f91
commit
0f969dd04d
Binary file not shown.
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2022 Matteo (Akymos) Cusinato
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
|
@ -0,0 +1,75 @@
|
||||||
|
# ff
|
||||||
|
|
||||||
|

|
||||||
|
[](https://goreportcard.com/report/github.com/akymos/ff)
|
||||||
|
|
||||||
|
|
||||||
|
ff is a command-line tool to manage favorite folders, creating an alias, to be used via shell directly with the cd command.
|
||||||
|
|
||||||
|
[](https://asciinema.org/a/UCxUx5TkKEUEitKyg8FEUZFCi)
|
||||||
|
|
||||||
|
* [Features](#features)
|
||||||
|
* [Installation](#installation)
|
||||||
|
* [Prebuilt binary](#prebuilt-binary)
|
||||||
|
* [Update](#update)
|
||||||
|
* [Usage](#usage)
|
||||||
|
* [Todo](#todo)
|
||||||
|
|
||||||
|
# Features
|
||||||
|
- Quickly create the alias of the folder you are in.
|
||||||
|
- Manage many aliases (tested with 200+ aliases)
|
||||||
|
- In case of conflict between an alias and a directory present, gives priority to the second.
|
||||||
|
- Once you have created the alias you do not have to close the terminal to be able to use it immediately.
|
||||||
|
|
||||||
|
# Installation
|
||||||
|
## Prebuilt binary
|
||||||
|
Download the prebuilt binary from [here (stable)](https://github.com/akymos/ff/releases/latest) or [here (all with pre-release)](https://github.com/akymos/ff/releases) and run the following command:
|
||||||
|
```bash
|
||||||
|
tar -xf <prebuilt_archive> ff && sudo mv ff /usr/local/bin
|
||||||
|
```
|
||||||
|
Next add the following line to `~/.zshrc` or `~/.bashrc`:
|
||||||
|
```bash
|
||||||
|
source "$(ff alias)"
|
||||||
|
```
|
||||||
|
## Update
|
||||||
|
To update the installed version of ff to the latest stable version, run the following command:
|
||||||
|
```bash
|
||||||
|
ff self-update
|
||||||
|
```
|
||||||
|
|
||||||
|
# Usage
|
||||||
|
```bash
|
||||||
|
ff is a command-line tool to manage favorite folders, creating an alias,
|
||||||
|
to be used via shell directly with the cd command.
|
||||||
|
|
||||||
|
Usage:
|
||||||
|
ff [command]
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
$ ff add alias_name
|
||||||
|
$ ff add alias2 /tmp
|
||||||
|
$ ff update alias_name /var
|
||||||
|
|
||||||
|
Available Commands:
|
||||||
|
add Create a directory alias
|
||||||
|
alias Prints out the path to the alias file
|
||||||
|
delete Interactively allows you to delete an alias
|
||||||
|
get Return the raw path of an alias
|
||||||
|
help Help about any command
|
||||||
|
list List saved aliases
|
||||||
|
panic WARINING!! This delete all saved data
|
||||||
|
self-update Update ff to the latest version
|
||||||
|
update Update a directory alias
|
||||||
|
|
||||||
|
Flags:
|
||||||
|
-h, --help help for ff
|
||||||
|
-v, --version version for ff
|
||||||
|
|
||||||
|
Use "ff [command] --help" for more information about a command.
|
||||||
|
```
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
- [ ] clean up the code
|
||||||
|
- [x] make a better readme
|
||||||
|
- [ ] windows support
|
||||||
|
- [ ] ......
|
Loading…
Reference in New Issue