commit
908fed9f50
|
|
@ -91,5 +91,5 @@ function alias_completion {
|
||||||
echo "$new_completion" >> "$tmp_file"
|
echo "$new_completion" >> "$tmp_file"
|
||||||
fi
|
fi
|
||||||
done < <(alias -p | sed -Ene "s/$alias_regex/\2 '\3' '\4'/p")
|
done < <(alias -p | sed -Ene "s/$alias_regex/\2 '\3' '\4'/p")
|
||||||
source "$tmp_file" && rm -f "$tmp_file"
|
source "$tmp_file" && command rm -f "$tmp_file"
|
||||||
}; alias_completion
|
}; alias_completion
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ load ../../lib/helpers
|
||||||
|
|
||||||
cite _about _param _example _group _author _version
|
cite _about _param _example _group _author _version
|
||||||
|
|
||||||
load ../../completion/available/git.completion
|
load ../../completion/available/capistrano.completion
|
||||||
|
|
||||||
@test "alias-completion: See that aliases with double quotes and brackets do not break the plugin" {
|
@test "alias-completion: See that aliases with double quotes and brackets do not break the plugin" {
|
||||||
alias gtest="git log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative"
|
alias gtest="git log --graph --pretty=format:'%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset' --abbrev-commit --date=relative"
|
||||||
|
|
@ -22,3 +22,10 @@ load ../../completion/available/git.completion
|
||||||
|
|
||||||
assert_success
|
assert_success
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "alias-completion: See that having aliased rm command does not output unnecessary output" {
|
||||||
|
alias rm='rm -v'
|
||||||
|
load ../../plugins/available/alias-completion.plugin
|
||||||
|
|
||||||
|
refute_output
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue