From c936276781107904e9af810e52f3661e91adc629 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 15 Nov 2024 01:29:50 +1100 Subject: [PATCH] Update shebangs in installed shellscripts to meet `rpmlint` and match provided paths at [pkgs.org](https://fedora.pkgs.org/41/fedora-x86_64/elvish-0.21.0-4.fc41.x86_64.rpm.html) --- src/shell-integration/bash/bash-preexec.sh | 1 + src/shell-integration/bash/ghostty.bash | 2 +- src/shell-integration/elvish/lib/ghostty-integration.elv | 1 + src/shell-integration/zsh/ghostty-integration | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/shell-integration/bash/bash-preexec.sh b/src/shell-integration/bash/bash-preexec.sh index 14a677888..4a8483052 100644 --- a/src/shell-integration/bash/bash-preexec.sh +++ b/src/shell-integration/bash/bash-preexec.sh @@ -1,3 +1,4 @@ +#!/usr/bin/bash # bash-preexec.sh -- Bash support for ZSH-like 'preexec' and 'precmd' functions. # https://github.com/rcaloras/bash-preexec # diff --git a/src/shell-integration/bash/ghostty.bash b/src/shell-integration/bash/ghostty.bash index 6a5da35cc..34fd4e923 100644 --- a/src/shell-integration/bash/ghostty.bash +++ b/src/shell-integration/bash/ghostty.bash @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#!/usr/bin/bash # # This is originally based on the recommended bash integration from # the semantic prompts proposal as well as some logic from Kitty's diff --git a/src/shell-integration/elvish/lib/ghostty-integration.elv b/src/shell-integration/elvish/lib/ghostty-integration.elv index 3d2f4a632..e0ba09f38 100644 --- a/src/shell-integration/elvish/lib/ghostty-integration.elv +++ b/src/shell-integration/elvish/lib/ghostty-integration.elv @@ -1,3 +1,4 @@ +#!/usr/bin/elvish { fn restore-xdg-dirs { use str diff --git a/src/shell-integration/zsh/ghostty-integration b/src/shell-integration/zsh/ghostty-integration index 662d5febb..6af443986 100755 --- a/src/shell-integration/zsh/ghostty-integration +++ b/src/shell-integration/zsh/ghostty-integration @@ -1,4 +1,4 @@ -#!/usr/bin/env zsh +#!/usr/bin/zsh # # Based on (started as) a copy of Kitty's zsh integration. Kitty is # distributed under GPLv3, so this file is also distributed under GPLv3.