bashrc & zshrc: add homebrew-install for OS X.

This commit is contained in:
Mikaela Suomalainen 2014-04-30 22:50:44 +03:00
parent 8b4248c53c
commit d7a52ad82f
2 changed files with 6 additions and 0 deletions

3
bashrc
View File

@ -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

3
zshrc
View File

@ -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