Skip to content

Commit db5dad6

Browse files
committed
fish shell
1 parent 0e9b3c7 commit db5dad6

File tree

9 files changed

+79
-2
lines changed

9 files changed

+79
-2
lines changed

.ddev/addon-metadata/pimp-my-shell/manifest.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: pimp-my-shell
22
repository: .
33
version: ""
4-
install_date: "2024-03-28T11:32:16-03:00"
4+
install_date: "2024-03-29T20:20:05-03:00"
55
project_files:
66
- web-build/Dockerfile.pimp-my-shell
77
- homeadditions/.bashrc.d/pimp-my-shell.sh
88
- config.pimp-my-shell.yaml
99
- commands/web/ahoy
1010
- commands/web/gum
11+
- commands/host/fish
1112
- homeadditions/.local/share/bash-completion/completions/ahoy
1213
- homeadditions/.config/starship.toml
14+
- homeadditions/.config/fish/conf.d/z.fish
1315
- pimp-my-shell/hooks/README.md
1416
- pimp-my-shell/hooks/post-import-db.sh
1517
- pimp-my-shell/hooks/post-import-db.d

.ddev/commands/host/fish

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
## #ddev-generated
4+
## Description: Opens up a fish shell in the container or executs a command within a fish shell
5+
## Usage: fish
6+
## Example: ddev fish
7+
## ExecRaw: true
8+
9+
ddev exec fish "$@"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#ddev-generated
2+
3+
lua /opt/z.lua/z.lua --init fish | source
+24
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
#ddev-generated
2+
3+
# ahoy
24
RUN wget -q https://github.com/ahoy-cli/ahoy/releases/download/v2.1.1/ahoy-bin-linux-`dpkg --print-architecture` -O - > /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
5+
6+
# fzf et al
37
RUN mkdir -p /opt/fzf && cd /opt/fzf && git init && git remote add origin https://github.com/junegunn/fzf.git && git fetch --depth 1 origin db6db49ed642caf9cbe716f80d4fa40052118068 && git checkout FETCH_HEAD && /opt/fzf/install --all && cp /root/.fzf.bash /opt
48
RUN mkdir -p /opt/fzf-git.sh && cd /opt/fzf-git.sh && git init && git remote add origin https://github.com/junegunn/fzf-git.sh.git && git fetch --depth 1 origin 0f1e52079ffd9741eec723f8fd92aa09f376602f && git checkout FETCH_HEAD
9+
10+
# bat
511
RUN wget -q https://github.com/sharkdp/bat/releases/download/v0.24.0/bat_0.24.0_`dpkg --print-architecture`.deb -O bat.deb && dpkg -i bat.deb && rm bat.deb
12+
13+
# z.lua
614
RUN mkdir -p /opt/z.lua && wget https://github.com/skywind3000/z.lua/archive/refs/tags/1.8.18.zip -qO- | bsdtar xf - --strip-components=1 -C /opt/z.lua
15+
16+
# starship
717
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y -v v1.18.1
18+
19+
# gum
820
RUN wget -q https://github.com/charmbracelet/gum/releases/download/v0.13.0/gum_0.13.0_`dpkg --print-architecture`.deb -O gum.deb && dpkg -i gum.deb && rm gum.deb
21+
22+
# fish
23+
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
24+
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
25+
RUN apt update && apt satisfy -y "fish (>=3.7)"
26+
USER $uid:$gid
27+
# The ?v= is only there to bust the Dockerfile build cache if there's
28+
# a new version we wan't to make sure it'll get into the builds. It doesn't
29+
# change the installed version or the version of the install script,
30+
# it will always be the latest at the time of the build.
31+
RUN echo "curl -sL 'https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish?4.4.4' | source && fisher install jorgebucaran/fisher" | fish
32+
USER root:root

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ projects, making it easier/nicer to work inside the container with some initial
1919
defaults.
2020

2121
- https://github.com/ahoy-cli/ahoy
22-
- https://github.com/skywind3000/z.lua
22+
- https://github.com/skywind3000/z.lua (working on both bash and fish)
2323
- https://github.com/junegunn/fzf
2424
- https://github.com/junegunn/fzf-git.sh
2525
- https://starship.rs/
2626
- https://github.com/charmbracelet/gum
27+
- https://github.com/fish-shell/fish-shell / https://fishshell.com/
2728

2829
It also has:
2930

commands/host/fish

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
## #ddev-generated
4+
## Description: Opens up a fish shell in the container or executs a command within a fish shell
5+
## Usage: fish
6+
## Example: ddev fish
7+
## ExecRaw: true
8+
9+
ddev exec fish "$@"
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#ddev-generated
2+
3+
lua /opt/z.lua/z.lua --init fish | source

install.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ project_files:
55
- config.pimp-my-shell.yaml
66
- commands/web/ahoy
77
- commands/web/gum
8+
- commands/host/fish
89
- homeadditions/.local/share/bash-completion/completions/ahoy
910
- homeadditions/.config/starship.toml
11+
- homeadditions/.config/fish/conf.d/z.fish
1012
- pimp-my-shell/hooks/README.md
1113
- pimp-my-shell/hooks/post-import-db.sh
1214
- pimp-my-shell/hooks/post-import-db.d

web-build/Dockerfile.pimp-my-shell

+24
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
#ddev-generated
2+
3+
# ahoy
24
RUN wget -q https://github.com/ahoy-cli/ahoy/releases/download/v2.1.1/ahoy-bin-linux-`dpkg --print-architecture` -O - > /usr/local/bin/ahoy && chmod +x /usr/local/bin/ahoy
5+
6+
# fzf et al
37
RUN mkdir -p /opt/fzf && cd /opt/fzf && git init && git remote add origin https://github.com/junegunn/fzf.git && git fetch --depth 1 origin db6db49ed642caf9cbe716f80d4fa40052118068 && git checkout FETCH_HEAD && /opt/fzf/install --all && cp /root/.fzf.bash /opt
48
RUN mkdir -p /opt/fzf-git.sh && cd /opt/fzf-git.sh && git init && git remote add origin https://github.com/junegunn/fzf-git.sh.git && git fetch --depth 1 origin 0f1e52079ffd9741eec723f8fd92aa09f376602f && git checkout FETCH_HEAD
9+
10+
# bat
511
RUN wget -q https://github.com/sharkdp/bat/releases/download/v0.24.0/bat_0.24.0_`dpkg --print-architecture`.deb -O bat.deb && dpkg -i bat.deb && rm bat.deb
12+
13+
# z.lua
614
RUN mkdir -p /opt/z.lua && wget https://github.com/skywind3000/z.lua/archive/refs/tags/1.8.18.zip -qO- | bsdtar xf - --strip-components=1 -C /opt/z.lua
15+
16+
# starship
717
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y -v v1.18.1
18+
19+
# gum
820
RUN wget -q https://github.com/charmbracelet/gum/releases/download/v0.13.0/gum_0.13.0_`dpkg --print-architecture`.deb -O gum.deb && dpkg -i gum.deb && rm gum.deb
21+
22+
# fish
23+
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
24+
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
25+
RUN apt update && apt satisfy -y "fish (>=3.7)"
26+
USER $uid:$gid
27+
# The ?v= is only there to bust the Dockerfile build cache if there's
28+
# a new version we wan't to make sure it'll get into the builds. It doesn't
29+
# change the installed version or the version of the install script,
30+
# it will always be the latest at the time of the build.
31+
RUN echo "curl -sL 'https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish?4.4.4' | source && fisher install jorgebucaran/fisher" | fish
32+
USER root:root

0 commit comments

Comments
 (0)