mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-28 08:58:52 +00:00
chore: make fish files executable
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user