Skip to content

Commit

Permalink
fix git version
Browse files Browse the repository at this point in the history
  • Loading branch information
Grigory Efimov committed Aug 19, 2021
1 parent 38c7214 commit eec6ba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ EOF

# git completion {{
GIT_VERSION=$( git version 2>/dev/null | awk '{print $3}' )
if [[ $( echo -e "2.0.0.0\n" $GIT_VERSION | sort -V | tail -1 ) == "2.0.0.0" ]]; then
if [[ $( echo -e "2.0.0.0\n$GIT_VERSION" | sort -V | tail -1 ) == "2.0.0.0" ]]; then
GIT_COMPLETION="$HOME/.git-completion.sh"
else
GIT_COMPLETION="$HOME/.git-completion.bash"
Expand Down

0 comments on commit eec6ba0

Please sign in to comment.