move brew shell function to brew.sh

This commit is contained in:
Xu Cheng 2016-05-03 16:14:15 +08:00
parent 2044294a86
commit 92934db202
2 changed files with 4 additions and 4 deletions

View File

@ -7,10 +7,6 @@
source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh" source "$HOMEBREW_LIBRARY/Homebrew/utils/lock.sh"
brew() {
"$HOMEBREW_BREW_FILE" "$@"
}
git() { git() {
"$HOMEBREW_LIBRARY/ENV/scm/git" "$@" "$HOMEBREW_LIBRARY/ENV/scm/git" "$@"
} }

View File

@ -24,6 +24,10 @@ chdir() {
cd "$@" >/dev/null || odie "Error: failed to cd to $*!" cd "$@" >/dev/null || odie "Error: failed to cd to $*!"
} }
brew() {
"$HOMEBREW_BREW_FILE" "$@"
}
# Force UTF-8 to avoid encoding issues for users with broken locale settings. # Force UTF-8 to avoid encoding issues for users with broken locale settings.
if [[ "$(locale charmap 2> /dev/null)" != "UTF-8" ]] if [[ "$(locale charmap 2> /dev/null)" != "UTF-8" ]]
then then