Compare commits
3 Commits
5d9b2d56e5
...
1e1ea39a90
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1e1ea39a90 | ||
|
|
cd8f2b7c0d | ||
|
|
48fe726f31 |
@@ -55,9 +55,17 @@ function downloadHomebrew() {
|
||||
popd -q
|
||||
}
|
||||
|
||||
function getCanonicalBrewPath() {
|
||||
local brewPath=${homebrew_directory}/bin/brew
|
||||
if [[ $brewPath == $HOME* ]]; then
|
||||
brewPath="\${HOME}${brewPath#$HOME}"
|
||||
fi
|
||||
echo $brewPath
|
||||
}
|
||||
|
||||
function createBrewCallerScript() {
|
||||
local cmdPath=${HOME}/bin/brew
|
||||
local brewPath=${homebrew_directory}/bin/brew
|
||||
local brewPath=`getCanonicalBrewPath`
|
||||
[[ -f ${cmdPath} ]] && rm ${cmdPath}
|
||||
mkdir -p ${cmdPath:h}
|
||||
cat <<- BREWCALLER > ${cmdPath}
|
||||
@@ -74,13 +82,13 @@ function createBrewCallerScript() {
|
||||
}
|
||||
|
||||
function createBrewPeriodicScript() {
|
||||
local brewCallerPath=${HOME}/bin/brew
|
||||
local brewPath=`getCanonicalBrewPath`
|
||||
local cmdPath=${HOME}/bin/brew-periodic
|
||||
[[ -f ${cmdPath} ]] && rm ${cmdPath}
|
||||
mkdir -p ${cmdPath:h}
|
||||
cat <<- BREWCALLER > ${cmdPath}
|
||||
#!/usr/bin/env zsh
|
||||
local brew='${brewCallerPath}'
|
||||
local brew='${brewPath}'
|
||||
\$brew update
|
||||
\$brew upgrade --greedy
|
||||
\$brew cleanup
|
||||
@@ -138,6 +146,10 @@ function getHomebrewDirectoryPath() {
|
||||
print -- ${homebrew_prefix:-$(getDefaultHomebrewPrefix)}/Homebrew
|
||||
}
|
||||
|
||||
function getDefaultGitHomebrewURL() {
|
||||
print -- ${HOMEBREW_BREW_GIT_REMOTE:-https://github.com/Homebrew/brew.git}
|
||||
}
|
||||
|
||||
function configureFolders() {
|
||||
local dirPath
|
||||
for dirPath in ${HOME}/bin ${HOME}/.vim/{backups,swaps}; do
|
||||
|
||||
0
modules/00a-sudo-settings.sh
Normal file → Executable file
0
modules/00a-sudo-settings.sh
Normal file → Executable file
Reference in New Issue
Block a user