Skip to content

Commit

Permalink
feat: add bun.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
hanoii committed Jun 1, 2024
1 parent 3f94e0b commit 550b454
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 3 deletions.
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-05-29T10:31:53-03:00"
install_date: "2024-06-01T17:58:21-03:00"
project_files:
- web-build/Dockerfile.pimp-my-shell
- homeadditions/.bashrc.d/pimp-my-shell.sh
Expand Down
2 changes: 1 addition & 1 deletion .ddev/homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ddev-generated

# Path
export PATH=~/.local/bin:$PATH:/usr/games
export PATH=~/.bun/bin:~/.local/bin:$PATH:/usr/games

# This is so that child processes have appropriate access to this var
export SHELL
Expand Down
11 changes: 11 additions & 0 deletions .ddev/web-build/Dockerfile.pimp-my-shell
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,22 @@ RUN wget -q https://github.com/charmbracelet/gum/releases/download/v0.14.1/gum_0
RUN echo "deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_`lsb_release -rs`/ /" | sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list
RUN curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_`lsb_release -rs`/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
RUN apt update && apt satisfy -y "fish (>=3.7.1)"

##
# Tools to install under ddev non-root user
#
USER $uid:$gid

# Fish plugins
RUN fish -c "curl -sL 'https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish' | source && fisher install jorgebucaran/[email protected]"
RUN \
fish -c "fisher install IlanCosman/[email protected]" ; \
fish -c "fisher install edc/[email protected]"

# bun.sh
RUN curl -fsSL https://bun.sh/install | bash -s "bun-v1.1.11"

# Go back to root
USER root:root

# kitty-terminfo from unstable, using its snapshot to make sure there's always gonna ver a version
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ defaults.
- https://github.com/IlanCosman/tide
- https://github.com/edc/bass
- https://chrisbuilds.github.io/terminaltexteffects/
- https://bun.sh/

It also has:

Expand Down
2 changes: 1 addition & 1 deletion homeadditions/.bashrc.d/pimp-my-shell.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ddev-generated

# Path
export PATH=~/.local/bin:$PATH:/usr/games
export PATH=~/.bun/bin:~/.local/bin:$PATH:/usr/games

# This is so that child processes have appropriate access to this var
export SHELL
Expand Down
11 changes: 11 additions & 0 deletions web-build/Dockerfile.pimp-my-shell
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,22 @@ RUN wget -q https://github.com/charmbracelet/gum/releases/download/v0.14.1/gum_0
RUN echo "deb http://download.opensuse.org/repositories/shells:/fish:/release:/3/Debian_`lsb_release -rs`/ /" | sudo tee /etc/apt/sources.list.d/shells:fish:release:3.list
RUN curl -fsSL https://download.opensuse.org/repositories/shells:fish:release:3/Debian_`lsb_release -rs`/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/shells_fish_release_3.gpg > /dev/null
RUN apt update && apt satisfy -y "fish (>=3.7.1)"

##
# Tools to install under ddev non-root user
#
USER $uid:$gid

# Fish plugins
RUN fish -c "curl -sL 'https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish' | source && fisher install jorgebucaran/[email protected]"
RUN \
fish -c "fisher install IlanCosman/[email protected]" ; \
fish -c "fisher install edc/[email protected]"

# bun.sh
RUN curl -fsSL https://bun.sh/install | bash -s "bun-v1.1.11"

# Go back to root
USER root:root

# kitty-terminfo from unstable, using its snapshot to make sure there's always gonna ver a version
Expand Down

0 comments on commit 550b454

Please sign in to comment.