File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,17 @@ latest-release:
6
6
tabs :
7
7
- label : Bash
8
8
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 && \
11
11
./swiftly init --quiet-shell-followup && \
12
- . ~/.local/share/swiftly/env.sh && \
12
+ . "${SWIFTLY_HOME_DIR:- ~/.local/share/swiftly} /env.sh" && \
13
13
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
14
20
links :
15
21
- href : ' https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt'
16
22
copy : ' License: Apache-2.0'
Original file line number Diff line number Diff line change @@ -9,8 +9,14 @@ latest-release:
9
9
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg && \
10
10
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory && \
11
11
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
12
- . ${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh && \
12
+ . " ${SWIFTLY_HOME_DIR:-~/.swiftly}/env.sh" && \
13
13
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
14
20
links :
15
21
- href : ' https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt'
16
22
copy : ' License: Apache-2.0'
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ title: Install Swift - Linux
8
8
<div class =" content " >
9
9
<div class =" release-box section " >
10
10
<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 %}
12
12
</div>
13
13
</div >
14
14
<div class =" release-box section " >
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ title: Install Swift - macOS
11
11
<div class =" content " >
12
12
<div class =" release-box section " >
13
13
<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%}
15
15
</div>
16
16
</div >
17
17
<div class =" release-box section " >
You can’t perform that action at this time.
0 commit comments