Browse Source

Git version fixes

master
Noah Petherbridge 7 years ago
parent
commit
9209b7ce4a
  1. 11
      home/.bashrc
  2. 2
      home/.gitconfig

11
home/.bashrc

@ -92,6 +92,17 @@ function title {
PROMPT_COMMAND="echo -en \"\033]0;$1\007\""
}
# Custom git command that overrides $PATH settings
function git {
if [ -x "/usr/local/bin/git" ]; then
/usr/local/bin/git $@
elif [ -x "/usr/bin/git" ]; then
/usr/bin/git $@
else
echo "git isn't installed"
fi
}
# Case-insensitive searching.
shopt -s nocaseglob

2
home/.gitconfig

@ -19,4 +19,4 @@
branch = auto
[push]
default = matching
default = simple

Loading…
Cancel
Save