Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

binx

Rust Linux

Alias manager for executables. Run binaries by short names instead of full paths, with support for script installation and desktop integration.

Install

git clone <repository-url>
cd binx
cargo build --release
cp target/release/binx ~/.binx/binx

Binx auto-installs itself to ~/.binx/binx on first run and adds to PATH.

Uso

Registrar e executar

# Register an executable (prompts for alias name)
binx /opt/myapp/bin/myapp

# Run by alias
binx myapp arg1 arg2

Instalar wrapper para shell

binx /opt/myapp/bin/myapp --install
# Now run directly:
myapp arg1 arg2

Criar entrada desktop

binx /opt/myapp/bin/myapp --desktop

Remover alias

binx myapp --remove

Configuração

Aliases são armazenados em ~/.config/binx.json:

{
  "aliases": {
    "myapp": {
      "path": "/opt/myapp/bin/myapp",
      "script": "/home/user/.binx/myapp",
      "desktop": "/home/user/.local/share/applications/binx_myapp.desktop"
    }
  }
}

Os campos script e desktop são adicionados ao usar --install e --desktop.

Desenvolvimento

# Build debug
cargo build

# Build release
cargo build --release

# Run
cargo run -- <target> [args...]

Créditos ou referências

  • clap - Command line argument parser
  • nix - Rust friendly bindings to *nix APIs
  • serde_json - JSON serialization

Licença

Este projeto está licenciado sob a GNU General Public License v3.0.

About

Alias manager for executables — Run binaries by short names instead of full paths, with support for script installation and desktop integration

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages