Skip to content

Commit 6ad2fbd

Browse files
committed
Export GIT_PAGER from the install.sh script
Also default it to /usr/bin/delta from the devcontainer-feature.json which should be the right location anyway.
1 parent 27bfd2b commit 6ad2fbd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/delta/devcontainer-feature.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Delta Pager",
33
"id": "delta",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"description": "Installs the delta pager for git",
66
"options": {
77
"version": {
@@ -18,6 +18,6 @@
1818
"ghcr.io/devcontainers/features/common-utils"
1919
],
2020
"containerEnv": {
21-
"GIT_PAGER": "/usr/local/bin/delta"
21+
"GIT_PAGER": "/usr/bin/delta"
2222
}
2323
}

src/delta/install.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ install_delta_for_debian() {
130130
# Cleanup
131131
run rm -rf "$temp_dir"
132132

133-
echo "✅ Delta installed successfully at: $(command -v delta)"
133+
export GIT_PAGER=$(command -v delta)
134+
echo "✅ Delta installed successfully at: ${GIT_PAGER}"
134135
delta --version
135136
}
136137

0 commit comments

Comments
 (0)