Skip to content

Commit 2559931

Browse files
Add Fish command for Swifly (#999)
1 parent 62fcf34 commit 2559931

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

_data/new-data/install/linux/releases.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,17 @@ latest-release:
66
tabs:
77
- label: Bash
88
code: |-
9-
curl -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz" && \
10-
tar zxf "swiftly-$(uname -m).tar.gz" && \
9+
curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
10+
tar zxf swiftly-$(uname -m).tar.gz && \
1111
./swiftly init --quiet-shell-followup && \
12-
. ~/.local/share/swiftly/env.sh && \
12+
. "${SWIFTLY_HOME_DIR:-~/.local/share/swiftly}/env.sh" && \
1313
hash -r
14+
- label: Fish
15+
code: |-
16+
curl -O https://download.swift.org/swiftly/linux/swiftly-(uname -m).tar.gz && \
17+
tar zxf swiftly-(uname -m).tar.gz && \
18+
./swiftly init --quiet-shell-followup && \
19+
set -q SWIFTLY_HOME_DIR && . "$SWIFTLY_HOME_DIR/env.fish" || . ~/.local/share/swiftly/env.fish
1420
links:
1521
- href: 'https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt'
1622
copy: 'License: Apache-2.0'

_data/new-data/install/macos/releases.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,14 @@ latest-release:
99
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \
1010
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \
1111
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
12-
. ${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh && \
12+
. "${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh" && \
1313
hash -r
14+
- label: Fish
15+
code: |
16+
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \
17+
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \
18+
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
19+
set -q SWIFTLY_HOME_DIR && . "$SWIFTLY_HOME_DIR/env.fish" || . ~/.swiftly/env.fish
1420
links:
1521
- href: 'https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt'
1622
copy: 'License: Apache-2.0'

install/linux/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ title: Install Swift - Linux
88
<div class="content">
99
<div class="release-box section">
1010
<div class="content">
11-
{% include new-includes/components/code-box.html content = site.data.new-data.install.linux.releases.latest-release.swiftly %}
11+
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.linux.releases.latest-release.swiftly %}
1212
</div>
1313
</div>
1414
<div class="release-box section">

install/macos/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: Install Swift - macOS
1111
<div class="content">
1212
<div class="release-box section">
1313
<div class="content">
14-
{% include new-includes/components/code-box.html content = site.data.new-data.install.macos.releases.latest-release.swiftly%}
14+
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.macos.releases.latest-release.swiftly%}
1515
</div>
1616
</div>
1717
<div class="release-box section">

0 commit comments

Comments
 (0)