Last edit: @simpleurbanart in <!error getting other user for DAP2PQZJ5> 4 months ago - Slack Archive

{lua}
local who = string.format("\60@%s\62", user.id)

local messageTable = {
'*:42bounce: Copy and paste the following to install brew :*',
'```\nmkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew\nmkdir -p /tmp/.$(whoami)-brew-locks\nmkdir -p $HOME/.brew/var/homebrew\nln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks\nexport PATH=\"$HOME/.brew/bin:$PATH\"\nbrew update && brew upgrade```',
'Afterwards make sure you add the following lines to your `.zshrc`.',
'```mkdir -p /tmp/.$(whoami)-brew-locks\nexport PATH=\"$HOME/.brew/bin:$PATH\"```',
'>*Note:*\n>Does this look too complicated?\n>DM \60@U2NNW0FPH\62 with `!brewbeta` for an experimental wrapper script.',
'Click here for more information about brew.'
}

local linkTable = {
'https://brew.sh/'
}

if (channel.type ~= "im") then
  print(who .. ', this factoid is only available through messaging me directly.\n' )
else
  print(messageTable[1] .. '\n')
  print(messageTable[2] .. '\n')
  print(messageTable[3] .. '\n')
  print(messageTable[4] .. '\n')
  print(messageTable[5] .. '\n')
  print('<' .. linkTable[1] .. '|' .. messageTable[6] .. '>\n')
end

History

{lua}
local who = string.format("\60@%s\62", user.id)

local messageTable = {
'*:42bounce: Copy and paste the following to install brew :*',
'```\nmkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew\nmkdir -p /tmp/.$(whoami)-brew-locks\nmkdir -p $HOME/.brew/var/homebrew\nln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks\nexport PATH=\"$HOME/.brew/bin:$PATH\"\nbrew update && brew upgrade```',
'Afterwards make sure you add the following lines to your `.zshrc`.',
'```mkdir -p /tmp/.$(whoami)-brew-locks\nexport PATH=\"$HOME/.brew/bin:$PATH\"```',
'>*Note:*\n>Does this look too complicated?\n>DM \60@U2NNW0FPH\62 with `!brewbeta` for an experimental wrapper script.',
'Click here for more information about brew.'
}

local linkTable = {
'https://brew.sh/'
}

if (channel.type ~= "im") then
  print(who .. ', this factoid is only available through messaging me directly.\n' )
else
  print(messageTable[1] .. '\n')
  print(messageTable[2] .. '\n')
  print(messageTable[3] .. '\n')
  print(messageTable[4] .. '\n')
  print(messageTable[5] .. '\n')
  print('<' .. linkTable[1] .. '|' .. messageTable[6] .. '>\n')
end
{lua}
local who = string.format("\60@%s\62", user.id)

local messageTable = {
'*:42bounce: Copy and paste the following to install brew :*',
'```\nmkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball\n/master | tar xz --strip 1 -C $HOME/.brew\nmkdir -p /tmp/.$(whoami)-brew-locks\nmkdir -p $HOME/.brew/var/homebrew\nln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks\nexport PATH=\"$HOME/.brew/bin:$PATH\"\nbrew update && brew upgrade```',
'Afterwards make sure you add the following lines to your `.zshrc`.',
'```mkdir -p /tmp/.$(whoami)-brew-locks\nexport PATH=\"$HOME/.brew/bin:$PATH\"```',
'>*Note:*\n>Does this look too complicated?\n>DM \60@U2NNW0FPH\62 with `!brewbeta` for an experimental wrapper script.',
'Click here for more information about brew.'
}

local linkTable = {
'https://brew.sh/'
}

if (channel.type ~= "im") then
  print(who .. ', this factoid is only available through messaging me directly.\n' )
else
  print(messageTable[1] .. '\n')
  print(messageTable[2] .. '\n')
  print(messageTable[3] .. '\n')
  print(messageTable[4] .. '\n')
  print(messageTable[5] .. '\n')
  print('<' .. linkTable[1] .. '|' .. messageTable[6] .. '>\n')
end

Revision: 3202 by @jkrause in (via web) 1 year agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/
```
mkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p $HOME/.brew/var/homebrew
ln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade
```
Afterwards make sure you add the following lines to your `.zshrc`
```
mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"
```

Does this look too complicated? Type !brewbeta into marvin for an experimental wrapper script.

Revision: 3201 (deleted) by @jkrause in <!error getting other user for D4H2HRQM8> 1 year agoSlack Archive

mkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p $HOME/.brew/var/homebrew
ln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade

Revision: 3200 (deleted) by @jkrause in <!error getting other user for D4H2HRQM8> 1 year agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/

Revision: 3199 (deleted) by @jkrause in <!error getting other user for D4H2HRQM8> 1 year agoSlack Archive

Revision: 3198 (deleted) by @jkrause in <!error getting other user for D4H2HRQM8> 1 year agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/

Revision: 3197 (deleted) by @jkrause in <!error getting other user for D4H2HRQM8> 1 year agoSlack Archive

Revision: 3196 (deleted) by @jkrause in <!error getting other user for D4H2HRQM8> 1 year agoSlack Archive

Revision: 2794 (deleted) by @kai in <!error getting other user for D47B81T09> 1 year agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/

mkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p $HOME/.brew/var/homebrew
ln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade

Afterwards make sure you add the following lines to your `.zshrc`

mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"

But really, these are the wrong instructions and you should be installing brew within goinfre.
Copy and run the following as a .sh script:

if [ ! -e "$HOME/goinfre" ] ; then
mkdir /goinfre/$(whoami)
fi
if [ ! -d "$HOME/goinfre/brew/bin" ] ; then
git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
brew update
fi

Revision: 2793 (deleted) by @kai in <!error getting other user for D47B81T09> 1 year agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/

mkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p $HOME/.brew/var/homebrew
ln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade

Afterwards make sure you add the following lines to your `.zshrc`

mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"

But really, these are the wrong instructions and you should be installing brew within goinfre.
if [ ! -e "$HOME/goinfre" ] ; then
mkdir /goinfre/$(whoami)
fi
if [ ! -d "$HOME/goinfre/brew/bin" ] ; then
git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
brew update
fi

Revision: 2792 (deleted) by @kai in <!error getting other user for D47B81T09> 1 year agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/

Revision: 2791 (deleted) by @kai in <!error getting other user for D47B81T09> 1 year agoSlack Archive

Revision: 2790 (deleted) by @kai in <!error getting other user for D47B81T09> 1 year agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/

Revision: 1759 by @pmcgoran in (via web) 2 years agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/
```
mkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p $HOME/.brew/var/homebrew
ln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade
```
Afterwards make sure you add the following lines to your `.zshrc`
```
mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"
```

Revision: 1758 by @pmcgoran in (via web) 2 years agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/
```
mkdir $HOME/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C $HOME/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p $HOME/.brew/var/homebrew/locks
ln -s /tmp/.$(whoami)-brew-locks $HOME/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade
```
Afterwards make sure you add the following lines to your `.zshrc`
```
mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"
```

Revision: 1752 by @pmcgoran in (via web) 2 years agoSlack Archive

Copy and paste the following to install brew. More information about brew here https://brew.sh/
```
mkdir ~/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C ~/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p ~/.brew/var/homebrew/locks
ln -s /tmp/.$(whoami)-brew-locks ~/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade
```
Afterwards make sure you add the following lines to your `.zshrc`
```
mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"
```

Revision: 1751 by @pmcgoran in (via web) 2 years agoSlack Archive

Use the code below to install brew. More information about brew here https://brew.sh/
```
mkdir ~/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C ~/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p ~/.brew/var/homebrew/locks
ln -s /tmp/.$(whoami)-brew-locks ~/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade
```
Afterwards make sure you add the following lines to your `.zshrc`
```
mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"
```

Revision: 1750 by @pmcgoran in (via web) 2 years agoSlack Archive

Use the code below to automate the installation of brew. More information about brew here https://brew.sh/
```
mkdir ~/.brew && curl -fsSL https://github.com/Homebrew/brew/tarball/master | tar xz --strip 1 -C ~/.brew
mkdir -p /tmp/.$(whoami)-brew-locks
mkdir -p ~/.brew/var/homebrew/locks
ln -s /tmp/.$(whoami)-brew-locks ~/.brew/var/homebrew/locks
export PATH="$HOME/.brew/bin:$PATH"
brew update && brew upgrade
```
Afterwards make sure you add the following lines to your `.zshrc`
```
mkdir -p /tmp/.$(whoami)-brew-locks
export PATH="$HOME/.brew/bin:$PATH"
```

Revision: 1249 by @kyork in #marvin-dev 2 years agoSlack Archive

Use the code below to automate the installation of brew using the goinfre directory. More information about brew here https://brew.sh/ ``` if [ ! -e '$HOME/goinfre' ] ; then
    mkdir /goinfre/$(whoami)
fi
export PATH="$HOME"/goinfre/brew/bin:"$PATH"
if [ ! -d '$HOME/goinfre/brew/bin' ] ; then
    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
    brew update
fi ```

Revision: 1248 by @kyork in #marvin-dev 2 years agoSlack Archive

Use the code below to automate the installation of brew using the goinfre directory. More information about brew here https://brew.sh/ ``` if [ ! -e '$HOME/goinfre' ] ; then
    mkdir /goinfre/$(whoami)
fi
if [ ! -d '$HOME/goinfre/brew/bin' ] ; then
    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
    brew update
fi
export PATH=\"$HOME/goinfre/brew/bin:$PATH ```
{lua}print("Use the code below to automate the installation of brew using the goinfre directory. More information about brew here https://brew.sh/\n```\nif [ ! -e '$HOME/goinfre' ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    export PATH=\"$HOME/goinfre/brew/bin:$PATH\"\n    brew update\nfi```")
{lua}print("Use the code below to automate the installation of brew using the goinfre directory. More information about brew here https://brew.sh/\n```\nif [ ! -e '$HOME/goinfre' ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    export PATH="$HOME/goinfre/brew/bin:$PATH"\n    brew update\nfi```")
{lua}print("Use the code below to automate the installation of brew using the goinfre directory. More information about brew here https://brew.sh/\n```\nif [ ! -e '$HOME/goinfre' ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    export PATH='$HOME/goinfre/brew/bin:$PATH'\n    brew update\nfi```")
{lua}print("Use the code below to automate the installation of brew using the goinfre directory. More information about brew here https://brew.sh/\n```\nif [ ! -e '$HOME/goinfre' ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    brew update\nfi```")
{lua}print("\nUse the code below to automate the installation of brew using the goinfre directory.\n```\nif [ ! -e '$HOME/goinfre' ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    brew update\nfi```")
{lua}print("Use the code below to automate the installation of brew using the goinfre directory.\n```\nif [ ! -e '$HOME/goinfre' ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    brew update\nfi```")
{lua}print("```\nif [ ! -e '$HOME/goinfre' ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    brew update\nfi```")
{lua}print("```\nif [ ! -e "$HOME/goinfre" ] ; then\n    mkdir /goinfre/$(whoami)\nfi\nif [ ! -d '$HOME/goinfre/brew/bin' ] ; then\n    git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew\n    brew update\nfi```")

Revision: 75 by @kyork in #teamwork 2 years agoSlack Archive

if [ ! -e "$HOME/goinfre" ] ; then
	mkdir /goinfre/$(whoami)
fi
if [ ! -d "$HOME/goinfre/brew/bin" ] ; then
	git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
	brew update
fi

Revision: 74 by @kyork in #teamwork 2 years agoSlack Archive

if [ ! -e "$HOME/goinfre" ] ; then
	mkdir /goinfre/$(whoami)
fi
if [ ! -d "$HOME/goinfre/brew/bin" ] ; then
	git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
	brew update
fi
brew install htop

Revision: 73 by @kyork in #teamwork 2 years agoSlack Archive

if [ ! -e "$HOME/goinfre" ] ; then
	mkdir /goinfre/$(whoami)
fi
if [ ! -d "$HOME/goinfre/brew/bin" ] ; then
	git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
	brew update
fi

Revision: 72 by @kyork in #teamwork 2 years agoSlack Archive

if [ ! -e "$HOME/goinfre" ] ; then
	cd /goinfre
	mkdir $(whoami)
	cd $(whoami)
fi
if [ ! -d "$HOME/goinfre/brew/bin" ] ; then
	git clone https://github.com/Homebrew/homebrew.git ~/goinfre/brew
	brew update
fi