diff --git a/.github/CODE-OF-CONDUCT.md b/.github/CODE-OF-CONDUCT.md index 5ae161d..2fba849 100644 --- a/.github/CODE-OF-CONDUCT.md +++ b/.github/CODE-OF-CONDUCT.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 0e90253..9c65e18 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/.github/SECURITY.md b/.github/SECURITY.md index 9fb8ba0..00868a2 100644 --- a/.github/SECURITY.md +++ b/.github/SECURITY.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/README.md b/README.md index d1b2dee..345da9c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/README.md b/lib/README.md index 0ca7ac4..863c768 100644 --- a/lib/README.md +++ b/lib/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/README.md b/lib/aliases/README.md index 881abe6..bf26b7e 100644 --- a/lib/aliases/README.md +++ b/lib/aliases/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/archives/README.md b/lib/aliases/archives/README.md index be67ca0..b855ccb 100644 --- a/lib/aliases/archives/README.md +++ b/lib/aliases/archives/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/cd/README.md b/lib/aliases/cd/README.md index c3d0a13..4a49059 100644 --- a/lib/aliases/cd/README.md +++ b/lib/aliases/cd/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/chmod/README.md b/lib/aliases/chmod/README.md index fad1438..ce7302c 100644 --- a/lib/aliases/chmod/README.md +++ b/lib/aliases/chmod/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/clear/README.md b/lib/aliases/clear/README.md index 433e97c..8275d95 100644 --- a/lib/aliases/clear/README.md +++ b/lib/aliases/clear/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/configuration/README.md b/lib/aliases/configuration/README.md index 51e93bf..84e6392 100644 --- a/lib/aliases/configuration/README.md +++ b/lib/aliases/configuration/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/default/README.md b/lib/aliases/default/README.md index e7c42d8..15891ad 100644 --- a/lib/aliases/default/README.md +++ b/lib/aliases/default/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/dig/README.md b/lib/aliases/dig/README.md index c3c9069..008e057 100644 --- a/lib/aliases/dig/README.md +++ b/lib/aliases/dig/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/disk-usage/README.md b/lib/aliases/disk-usage/README.md index 14f55c3..fcde6be 100644 --- a/lib/aliases/disk-usage/README.md +++ b/lib/aliases/disk-usage/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/editor/README.md b/lib/aliases/editor/README.md index ea8ca86..190dadf 100644 --- a/lib/aliases/editor/README.md +++ b/lib/aliases/editor/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/find/README.md b/lib/aliases/find/README.md index 36a337a..45704d9 100644 --- a/lib/aliases/find/README.md +++ b/lib/aliases/find/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/gcloud/README.md b/lib/aliases/gcloud/README.md index 26418bb..94b4639 100644 --- a/lib/aliases/gcloud/README.md +++ b/lib/aliases/gcloud/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/git/README.md b/lib/aliases/git/README.md index 5be3457..993e61b 100644 --- a/lib/aliases/git/README.md +++ b/lib/aliases/git/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/gnu/README.md b/lib/aliases/gnu/README.md index a1510e2..f1bd295 100644 --- a/lib/aliases/gnu/README.md +++ b/lib/aliases/gnu/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/heroku/README.md b/lib/aliases/heroku/README.md index 94859ed..0c0f2d5 100644 --- a/lib/aliases/heroku/README.md +++ b/lib/aliases/heroku/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/interactive/README.md b/lib/aliases/interactive/README.md index 4fe8538..3e90a5e 100644 --- a/lib/aliases/interactive/README.md +++ b/lib/aliases/interactive/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/jekyll/README.md b/lib/aliases/jekyll/README.md index c782199..e72434c 100644 --- a/lib/aliases/jekyll/README.md +++ b/lib/aliases/jekyll/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/list/README.md b/lib/aliases/list/README.md index 32051da..276d770 100644 --- a/lib/aliases/list/README.md +++ b/lib/aliases/list/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/macOS/README.md b/lib/aliases/macOS/README.md index d022583..c266d91 100644 --- a/lib/aliases/macOS/README.md +++ b/lib/aliases/macOS/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/make/README.md b/lib/aliases/make/README.md index bae29b4..a3e482d 100644 --- a/lib/aliases/make/README.md +++ b/lib/aliases/make/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/mkdir/README.md b/lib/aliases/mkdir/README.md index 70aa7fd..983f78e 100644 --- a/lib/aliases/mkdir/README.md +++ b/lib/aliases/mkdir/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/npm/README.md b/lib/aliases/npm/README.md index bf1c63a..0a4c4cf 100644 --- a/lib/aliases/npm/README.md +++ b/lib/aliases/npm/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/permission/README.md b/lib/aliases/permission/README.md index 1c46e84..b6e6f1a 100644 --- a/lib/aliases/permission/README.md +++ b/lib/aliases/permission/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/pnpm/README.md b/lib/aliases/pnpm/README.md index 01c1e3d..e09ff82 100644 --- a/lib/aliases/pnpm/README.md +++ b/lib/aliases/pnpm/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/ps/README.md b/lib/aliases/ps/README.md index b88b9e4..2d017da 100644 --- a/lib/aliases/ps/README.md +++ b/lib/aliases/ps/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/rsync/README.md b/lib/aliases/rsync/README.md index 9d05507..ec8a5ba 100644 --- a/lib/aliases/rsync/README.md +++ b/lib/aliases/rsync/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/rust/README.md b/lib/aliases/rust/README.md index bd82e3c..f687620 100644 --- a/lib/aliases/rust/README.md +++ b/lib/aliases/rust/README.md @@ -1,12 +1,10 @@ - dotfiles logo - # Dotfiles (v0.2.469) @@ -17,45 +15,167 @@ Simply designed to fit your shell life 🐚 ## πŸ†πŸ†„πŸ†‚πŸ†ƒπŸ†„πŸ…Ώ πŸ…°πŸ…½πŸ…³ πŸ…²πŸ…°πŸ†πŸ…ΆπŸ…Ύ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ -This code provides a set of aliases for the `rustup` and `cargo` -commands. - -- `cg` Cargo shortcut. -- `cgb` Cargo build. -- `cgbh` Cargo bench. -- `cgbr` Cargo build release. -- `cgc` Cargo check. -- `cgcl` Cargo clean. -- `cgcy` Cargo clippy. -- `cgd` Cargo doc. -- `cgdr` Cargo doc release. -- `cgf` Cargo format. -- `cgi` Cargo install. -- `cginit` Cargo init. -- `cgn` Cargo new. -- `cgp` Cargo publish. -- `cgr` Cargo run. -- `cgrr` Cargo run release. -- `cgs` Cargo search. -- `cgt` Cargo test. -- `cgtr` Cargo test release. -- `cgtt` Cargo tree. -- `cgu` Cargo update. -- `cgun` Cargo uninstall. -- `ru` Rustup update. -- `rca` Rustup component add. -- `rcl` Rustup component list. -- `rcr` Rustup component remove. -- `rde` Rustup default. -- `rnn` Run rustup nightly. -- `rns` Run rustup stable. -- `rtaa` Rustup target add. -- `rtal` Rustup target list. -- `rtar` Rustup target remove. -- `rti` Rustup toolchain install. -- `rtl` Rustup toolchain list. -- `rtu` Rustup toolchain uninstall. -- `ruc` Update rustup nightly. -- `rus` Update rustup stable. +This code provides a comprehensive set of aliases for Rust development using `cargo` and `rustup` commands. + +### Cargo Aliases + +#### Basic Commands + +- `cg` - Cargo shortcut +- `cgn` - Create new binary project +- `cgni` - Create new library project +- `cginit` - Initialize project in current directory + +#### Build and Run + +- `cgb` - Build debug +- `cgbr` - Build release +- `cgr` - Run debug +- `cgrr` - Run release +- `cgw` - Watch and rebuild + +#### Testing and Benchmarking + +- `cgt` - Run tests +- `cgtr` - Run tests in release mode +- `cgbh` - Run benchmarks +- `cgta` - Test all targets +- `cgtt` - Single threaded tests + +#### Code Quality + +- `cgc` - Check compilation +- `cgcl` - Clean build artifacts +- `cgcy` - Run clippy lints +- `cgf` - Format code +- `cgfa` - Format all code +- `cgfx` - Auto-fix code issues +- `cgaud` - Security vulnerabilities check + +#### Documentation + +- `cgd` - Build and open documentation +- `cgdr` - Build release documentation +- `cgdo` - Document private items + +#### Dependencies + +- `cga` - Add dependency +- `cgad` - Add dev dependency +- `cgu` - Update dependencies +- `cgo` - Check outdated dependencies +- `cgv` - Vendor dependencies +- `cgtree` - Display dependency tree + +#### Cross Compilation + +- `cgx` - Build using Zig +- `cgxw` - Cross compilation +- `cgxt` - Target specific platform + +#### Analysis and Profiling + +- `cgfl` - Generate flamegraph +- `cgbl` - Binary size analysis +- `cgl` - Code coverage +- `cgm` - Module structure +- `cgex` - Expand macros + +#### Package Management + +- `cgi` - Install binary +- `cgun` - Uninstall binary +- `cgp` - Publish to crates.io +- `cgs` - Search crates.io +- `cgcp` - Create release package + +#### Advanced Build + +- `cgba` - Build all targets +- `cgbt` - Build with all features +- `cgbp` - Build with specific profile + +#### Project Templates + +- `cgnb` - New binary from template +- `cgnl` - New library from template +- `cgnt` - New from custom template + +### Rustup Aliases + +#### Updates and Installation + +- `ru` - Update all toolchains +- `rus` - Update stable toolchain +- `run` - Update nightly toolchain +- `rti` - Install specific toolchain + +#### Components Management + +- `rca` - Add component +- `rcl` - List components +- `rcr` - Remove component + +#### Toolchain Management + +- `rtl` - List installed toolchains +- `rtu` - Uninstall toolchain +- `rde` - Set default toolchain + +#### Target Management + +- `rtaa` - Add compilation target +- `rtal` - List available targets +- `rtar` - Remove compilation target + +#### Environment Running + +- `rns` - Run command with stable +- `rnn` - Run command with nightly + +#### Documentation and Help + +- `rdo` - Open Rust documentation + +#### Override Management + +- `rpr` - Set directory toolchain +- `rpl` - List directory overrides +- `rpn` - Remove directory override + +#### Toolchain Information + +- `rws` - Show active rustc path +- `rsh` - Show toolchain info + +### Common Workflows + +#### New Project Setup + +```bash +# Create new project with common dependencies +cgn myproject && cd myproject && cga serde && cgad tokio +``` + +#### Release Workflow + +```bash +# Check, test, and build for release +cgcy && cgt && cgbr && cgaud +``` + +#### Documentation Update + +```bash +# Format code and update documentation +cgfa && cgd && cgdo +``` + +#### Cross-compilation Check + +```bash +# Check build for different architecture +cgxw check --target aarch64-unknown-linux-gnu +``` [banner]: https://kura.pro/dotfiles/v2/images/titles/title-dotfiles.svg diff --git a/lib/aliases/rust/rust.aliases.sh b/lib/aliases/rust/rust.aliases.sh index a8319a4..1c6d2ee 100644 --- a/lib/aliases/rust/rust.aliases.sh +++ b/lib/aliases/rust/rust.aliases.sh @@ -1,127 +1,119 @@ #!/usr/bin/env bash - # πŸ…³πŸ…ΎπŸ†ƒπŸ…΅πŸ…ΈπŸ…»πŸ…΄πŸ†‚ (v0.2.469) - # Made with β™₯ in London, UK by Sebastien Rousseau # Copyright (c) 2015-2025. All rights reserved # License: MIT # πŸ…²πŸ…°πŸ†πŸ…ΆπŸ…Ύ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ - if command -v 'cargo' >/dev/null; then - # c: Cargo shortcut. - alias cg='cargo' - - # cgb: Cargo build. - alias cgb='cg build' - - # cgbh: Cargo bench. - alias cgbh='cg bench' - - # cbr: Cargo build release. - alias cgbr='cg build --release' - - # cgc: Cargo check. - alias cgc='cg check' - - # cgcl: Cargo clean. - alias cgcl='cg clean' - - # cgcy: Cargo clippy. - alias cgcy='cg clippy' - - # cgd: Cargo doc. - alias cgd='cg doc --open' - - # cgdr: Cargo doc release. - alias cgdr='cg doc --release' - - # cgf: Cargo format. - alias cgf='cg fmt' - - # cgi: Cargo install. - alias cgi='cg install' - - # cginit: Cargo init. - alias cginit='cg init' - - # cgn: Cargo new. - alias cgn='cg new' - - # cgp: Cargo publish. - alias cgp='cg publish' - - # cgr: Cargo run. - alias cgr='cg run' - - # cgrr: Cargo run release. - alias cgrr='cg run --release' - - # cgs: Cargo search. - alias cgs='cg search' - - # cgt: Cargo test. - alias cgt='cg test' - - # cgtr: Cargo test release. - alias cgtr='cg test --release' - - # cgtt: Cargo tree. - alias cgtt='cg tree' - - # cgu: Cargo update. - alias cgu='cg update' - - # cgun: Cargo uninstall. - alias cgun='cg uninstall' - + # Basic Commands + alias cg='cargo' # Cargo shortcut + alias cgn='cg new' # Create new binary project + alias cgni='cg new --lib' # Create new library project + alias cginit='cg init' # Initialize project in current directory + + # Build and Run + alias cgb='cg build' # Build debug + alias cgbr='cg build --release' # Build release + alias cgr='cg run' # Run debug + alias cgrr='cg run --release' # Run release + alias cgw='cg watch' # Watch and rebuild + + # Testing and Benchmarking + alias cgt='cg test' # Run tests + alias cgtr='cg test --release' # Run tests in release mode + alias cgbh='cg bench' # Run benchmarks + alias cgta='cg test --all' # Test all targets + alias cgtt='cg test -- --test-threads=1' # Single threaded tests + + # Code Quality + alias cgc='cg check' # Check compilation + alias cgcl='cg clean' # Clean build artifacts + alias cgcy='cg clippy' # Run clippy lints + alias cgf='cg fmt' # Format code + alias cgfa='cg fmt --all' # Format all code + alias cgfx='cg fix' # Auto-fix code issues + alias cgaud='cg audit' # Security vulnerabilities check + + # Documentation + alias cgd='cg doc --open' # Build and open documentation + alias cgdr='cg doc --release' # Build release documentation + alias cgdo='cg doc --document-private-items' # Document private items + + # Dependencies + alias cga='cg add' # Add dependency + alias cgad='cg add --dev' # Add dev dependency + alias cgu='cg update' # Update dependencies + alias cgo='cg outdated' # Check outdated dependencies + alias cgv='cg vendor' # Vendor dependencies + alias cgtree='cg tree' # Display dependency tree + + # Cross Compilation + alias cgx='cg zigbuild' # Build using Zig + alias cgxw='cg cross' # Cross compilation + alias cgxt='cg target' # Target specific platform + + # Analysis and Profiling + alias cgfl='cg flamegraph' # Generate flamegraph + alias cgbl='cg bloat' # Binary size analysis + alias cgl='cg llvm-cov' # Code coverage + alias cgm='cg modules' # Module structure + alias cgex='cg expand' # Expand macros + + # Package Management + alias cgi='cg install' # Install binary + alias cgun='cg uninstall' # Uninstall binary + alias cgp='cg publish' # Publish to crates.io + alias cgs='cg search' # Search crates.io + alias cgcp='cg package' # Create release package + + # Advanced Build + alias cgba='cg build --all-targets' # Build all targets + alias cgbt='cg build --all-features' # Build with all features + alias cgbp='cg build --release --profile' # Build with specific profile + + # Project Templates + alias cgnb='cg generate --bin' # New binary from template + alias cgnl='cg generate --lib' # New library from template + alias cgnt='cg generate' # New from custom template fi # πŸ†πŸ†„πŸ†‚πŸ†ƒπŸ†„πŸ…Ώ πŸ…°πŸ…»πŸ…ΈπŸ…°πŸ†‚πŸ…΄πŸ†‚ if command -v 'rustup' >/dev/null; then - - # Rustup update. - alias ru='rustup update' - - # Rustup component add. - alias rca='rustup component add' - - # Rustup component list. - alias rcl='rustup component list' - - # Rustup component remove. - alias rcr='rustup component remove' - - # Rustup default. - alias rde='rustup default' - - # Run rustup nightly. - alias rnn='rustup run nightly' - - # Run rustup stable. - alias rns='rustup run stable' - - # Rustup target add. - alias rtaa='rustup target add' - - # Rustup target list. - alias rtal='rustup target list' - - # Rustup target remove. - alias rtar='rustup target remove' - - # Rustup toolchain install. - alias rti='rustup toolchain install' - - # Rustup toolchain list. - alias rtl='rustup toolchain list' - - # Rustup toolchain uninstall. - alias rtu='rustup toolchain uninstall' - - # Update rustup nightly. - alias ruc='rustup update nightly' - - # Update rustup stable. - alias rus='rustup update stable' - + # Updates and Installation + alias ru='rustup update' # Update all toolchains + alias rus='rustup update stable' # Update stable toolchain + alias run='rustup update nightly' # Update nightly toolchain + alias rti='rustup toolchain install' # Install specific toolchain + + # Components Management + alias rca='rustup component add' # Add component + alias rcl='rustup component list' # List components + alias rcr='rustup component remove' # Remove component + + # Toolchain Management + alias rtl='rustup toolchain list' # List installed toolchains + alias rtu='rustup toolchain uninstall' # Uninstall toolchain + alias rde='rustup default' # Set default toolchain + + # Target Management + alias rtaa='rustup target add' # Add compilation target + alias rtal='rustup target list' # List available targets + alias rtar='rustup target remove' # Remove compilation target + + # Environment Running + alias rns='rustup run stable' # Run command with stable + alias rnn='rustup run nightly' # Run command with nightly + + # Documentation and Help + alias rdo='rustup doc --open' # Open Rust documentation + + # Override Management + alias rpr='rustup override set' # Set directory toolchain + alias rpl='rustup override list' # List directory overrides + alias rpn='rustup override none' # Remove directory override + + # Toolchain Information + alias rws='rustup which rustc' # Show active rustc path + alias rsh='rustup show' # Show toolchain info fi diff --git a/lib/aliases/subversion/README.md b/lib/aliases/subversion/README.md index cf29ce9..b1eac0b 100644 --- a/lib/aliases/subversion/README.md +++ b/lib/aliases/subversion/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/sudo/README.md b/lib/aliases/sudo/README.md index 2160792..12bb871 100644 --- a/lib/aliases/sudo/README.md +++ b/lib/aliases/sudo/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/tmux/README.md b/lib/aliases/tmux/README.md index c5f71bd..feda07e 100644 --- a/lib/aliases/tmux/README.md +++ b/lib/aliases/tmux/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/update/README.md b/lib/aliases/update/README.md index 359c651..fdbbbd7 100644 --- a/lib/aliases/update/README.md +++ b/lib/aliases/update/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/uuid/README.md b/lib/aliases/uuid/README.md index ee2860c..ced446d 100644 --- a/lib/aliases/uuid/README.md +++ b/lib/aliases/uuid/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/aliases/wget/README.md b/lib/aliases/wget/README.md index bb24135..d277e28 100644 --- a/lib/aliases/wget/README.md +++ b/lib/aliases/wget/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/configurations/README.md b/lib/configurations/README.md index abd7cfb..83615e8 100644 --- a/lib/configurations/README.md +++ b/lib/configurations/README.md @@ -3,7 +3,7 @@ dotfiles logo diff --git a/lib/functions/README.md b/lib/functions/README.md index 1b7c8cb..6549bb6 100644 --- a/lib/functions/README.md +++ b/lib/functions/README.md @@ -3,7 +3,7 @@ dotfiles logo