Skip to content

Commit

Permalink
feat: rust/cargo and spacer
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Dec 23, 2024
1 parent 0b68094 commit b439bd4
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .ddev/addon-metadata/pimp-my-shell/manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pimp-my-shell
repository: .
version: ""
install_date: "2024-12-23T13:27:50-03:00"
install_date: "2024-12-23T14:35:51-03:00"
project_files:
- web-build/Dockerfile.pimp-my-shell
- homeadditions/.bashrc.d/pimp-my-shell.sh
Expand Down
3 changes: 3 additions & 0 deletions .ddev/homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ alias ll='eza -la --icons --octal-permissions --group-directories-first'
export PATH=$PATH:/usr/local/go/bin:~/go/bin
unset GOARCH
unset GOOS

# rust
. ~/.cargo/env
3 changes: 3 additions & 0 deletions .ddev/homeadditions/.config/fish/conf.d/pimp-my-shell.fish
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ end
function ll --wraps eza --description "eza -la --icons --octal-permissions --group-directories-first"
eza -la --icons --octal-permissions --group-directories-first $argv
end

# rust
source ~/.cargo/env.fish
8 changes: 8 additions & 0 deletions .ddev/web-build/Dockerfile.pimp-my-shell
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ RUN set -eux; \
RECUR_VERSION=1.1.0; \
/usr/local/go/bin/go install github.com/dbohdan/recur@v${RECUR_VERSION};

RUN set -eux; \
RUST_VERSION=1.83.0; \
curl -sSf https://sh.rustup.rs/ | sh -s -- --default-toolchain=${RUST_VERSION} -y
RUN set -eux; \
SPACER_VERSION=0.3.0; \
~/.cargo/bin/cargo install spacer@${SPACER_VERSION};


# Go back to root
USER root:root

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ ddev get https://github.com/hanoii/ddev-pimp-my-shell/tarball/main
- https://go.dev
- https://github.com/skx/sysbox
- https://github.com/dbohdan/recur
- https://www.rust-lang.org/
- https://github.com/samwho/spacer
- Some useful [scripts](pimp-my-shell/scripts)

## Tweaks
Expand Down
3 changes: 3 additions & 0 deletions homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,6 @@ alias ll='eza -la --icons --octal-permissions --group-directories-first'
export PATH=$PATH:/usr/local/go/bin:~/go/bin
unset GOARCH
unset GOOS

# rust
. ~/.cargo/env
3 changes: 3 additions & 0 deletions homeadditions/.config/fish/conf.d/pimp-my-shell.fish
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,6 @@ end
function ll --wraps eza --description "eza -la --icons --octal-permissions --group-directories-first"
eza -la --icons --octal-permissions --group-directories-first $argv
end

# rust
source ~/.cargo/env.fish
8 changes: 8 additions & 0 deletions web-build/Dockerfile.pimp-my-shell
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,14 @@ RUN set -eux; \
RECUR_VERSION=1.1.0; \
/usr/local/go/bin/go install github.com/dbohdan/recur@v${RECUR_VERSION};

RUN set -eux; \
RUST_VERSION=1.83.0; \
curl -sSf https://sh.rustup.rs/ | sh -s -- --default-toolchain=${RUST_VERSION} -y
RUN set -eux; \
SPACER_VERSION=0.3.0; \
~/.cargo/bin/cargo install spacer@${SPACER_VERSION};


# Go back to root
USER root:root

Expand Down

0 comments on commit b439bd4

Please sign in to comment.