chore: make fish files executable

This commit is contained in:
2025-10-23 23:44:05 +03:00
parent 0bd72c6d51
commit 3f2d1b85ed
18 changed files with 299 additions and 320 deletions

View File

@@ -3,7 +3,7 @@
function __git_profile_debug
set -l file "$BASH_COMP_DEBUG_FILE"
if test -n "$file"
echo "$argv" >> $file
echo "$argv" >>$file
end
end
@@ -160,11 +160,11 @@ end
# so we can properly delete any completions provided by another script.
# Only do this if the program can be found, or else fish may print some errors; besides,
# the existing completions will only be loaded if the program can be found.
if type -q "git-profile"
if type -q git-profile
# The space after the program name is essential to trigger completion for the program
# and not completion of the program name itself.
# Also, we use '> /dev/null 2>&1' since '&>' is not supported in older versions of fish.
complete --do-complete "git-profile " > /dev/null 2>&1
complete --do-complete "git-profile " >/dev/null 2>&1
end
# Remove any pre-existing completions for the program since we will be handling all of them.
@@ -172,4 +172,4 @@ complete -c git-profile -e
# The call to __git_profile_prepare_completions will setup __git_profile_comp_results
# which provides the program's completion choices.
complete -c git-profile -n '__git_profile_prepare_completions' -f -a '$__git_profile_comp_results'
complete -c git-profile -n __git_profile_prepare_completions -f -a '$__git_profile_comp_results'