mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-02-01 23:34:03 +01:00
bashrc & zshrc: add homebrew-install for OS X.
This commit is contained in:
parent
8b4248c53c
commit
d7a52ad82f
3
bashrc
3
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
|
||||
|
3
zshrc
3
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
|
||||
|
Loading…
Reference in New Issue
Block a user