# Tasks for Homebrew

## Update brew periodically

The task will run each hour when user is logged in.

```shell
cp sh.brew.plist $HOME/Library/LaunchAgents
```

## Enable ssh version 1 support in macOS Sierra

### Why

SSH in macOS Sierra dropped version 1 support. The homebrew tap doesn't support it by default either.

### Usage

```shell
brew tap homebrew/dupes
curl -fsSL https://github.com/boltomli/MyMacScripts/raw/master/homebrew/homebrew-dupes.openssh.diff | patch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes/openssh.rb
brew install openssh --with-ssh1
```

If you want to make ssh1 work in Applications such as Welly ***DANGEROUS!***:

```shell
brew cask install welly
sudo ln -s /usr/local/bin/ssh /usr/local/s
LC_ALL=C sed -i.bak 's#/usr/bin/ssh#/usr/local/s#' /Applications/Welly.app/Contents/MacOS/Welly
```

# Tasks for Homebrew

## Update brew periodically

The task will run each hour when user is logged in.

```shell
mkdir -p $HOME/Library/LaunchAgents
cp sh.brew.plist $HOME/Library/LaunchAgents
```

## Enable ssh version 1 support in macOS Sierra

### Why

SSH in macOS Sierra dropped version 1 support. The homebrew tap doesn't support it by default either.

### Usage

```shell
brew tap homebrew/dupes
curl -fsSL https://github.com/boltomli/MyMacScripts/raw/master/homebrew/homebrew-dupes.openssh.diff | patch /usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes/openssh.rb
brew install openssh --with-ssh1
```

If you want to make ssh1 work in Applications such as Welly ***DANGEROUS!***:

```shell
brew cask install welly
sudo ln -s /usr/local/bin/ssh /usr/local/s
LC_ALL=C sed -i.bak 's#/usr/bin/ssh#/usr/local/s#' /Applications/Welly.app/Contents/MacOS/Welly
```

Make LaunchAgents dir before copy
Make LaunchAgents dir before copy
