From d7a52ad82f28723fe06073dfe8d718e77c22ffeb Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Wed, 30 Apr 2014 22:50:44 +0300 Subject: [PATCH] bashrc & zshrc: add homebrew-install for OS X. --- bashrc | 3 +++ zshrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bashrc b/bashrc index 1d02ccd2..9e658931 100644 --- a/bashrc +++ b/bashrc @@ -506,6 +506,9 @@ if [ -f /usr/bin/dnf ]; then alias yum=dnf fi +# Homebrew +alias homebrew-install="mkdir -p ~/.local;cd ~/.local;git clone https://github.com/homebrew/homebrew.git;mkdir -p $HOME/.local/share/man/man1;ln -sf $HOME/.local/homebrew/bin/brew $HOME/.local/bin/brew;ln -sf $HOME/.local/homebrew/share/man/man1/brew.1 $HOME/.local/share/man/man1/brew.1;cd" + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index 67e896be..f9f0ecf6 100644 --- a/zshrc +++ b/zshrc @@ -479,6 +479,9 @@ if [ -f /usr/bin/dnf ]; then alias yum=dnf fi +# Homebrew +alias homebrew-install="mkdir -p ~/.local;cd ~/.local;git clone https://github.com/homebrew/homebrew.git;mkdir -p $HOME/.local/share/man/man1;ln -sf $HOME/.local/homebrew/bin/brew $HOME/.local/bin/brew;ln -sf $HOME/.local/homebrew/share/man/man1/brew.1 $HOME/.local/share/man/man1/brew.1;cd" + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases