Alias manager for executables. Run binaries by short names instead of full paths, with support for script installation and desktop integration.
git clone <repository-url>
cd binx
cargo build --release
cp target/release/binx ~/.binx/binxBinx auto-installs itself to ~/.binx/binx on first run and adds to PATH.
# Register an executable (prompts for alias name)
binx /opt/myapp/bin/myapp
# Run by alias
binx myapp arg1 arg2binx /opt/myapp/bin/myapp --install
# Now run directly:
myapp arg1 arg2binx /opt/myapp/bin/myapp --desktopbinx myapp --removeAliases 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.
# Build debug
cargo build
# Build release
cargo build --release
# Run
cargo run -- <target> [args...]- clap - Command line argument parser
- nix - Rust friendly bindings to *nix APIs
- serde_json - JSON serialization
Este projeto está licenciado sob a GNU General Public License v3.0.