1
0
Fork 0

Update macOS instruction and use brew for a few more packages

main
Ambrose Chua 2021-03-17 03:07:56 +08:00
parent c3f7236360
commit a1f3ba6c8a
2 changed files with 18 additions and 33 deletions

View File

@ -174,6 +174,7 @@ esac
packages_add neovim git packages_add neovim git
$nicetohave && packages_add pass gnupg $nicetohave && packages_add pass gnupg
case $ID in case $ID in
macos) packages_add pinentry-mac;
alpine) packages_add dropbear-ssh;; alpine) packages_add dropbear-ssh;;
fedora) packages_add openssh-clients;; fedora) packages_add openssh-clients;;
debian|ubuntu) packages_add openssh-client;; debian|ubuntu) packages_add openssh-client;;
@ -207,10 +208,14 @@ packages_install
# Install Python 3 packages # Install Python 3 packages
case $ID in case $ID in
macos) $nicetohave && packages_add httpie;;
alpine) packages_add httpie;; alpine) packages_add httpie;;
*) pip3 install --no-cache-dir --user httpie;; *) pip3 install --no-cache-dir --user httpie;;
esac esac
$nicetohave && pip3 install --no-cache-dir --user thefuck case $ID in
macos) $nicetohave && packages_add thefuck;;
*) $nicetohave && pip3 install --no-cache-dir --user thefuck;;
esac
# Install Golang # Install Golang

44
.github/README.md vendored
View File

@ -17,47 +17,27 @@ Just storing dotfiles in a repository isn't enough. This is almost all the tools
```sh ```sh
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
curl -fLo ~/.local/bin/runenv https://raw.githubusercontent.com/serverwentdown/env/master/.local/bin/runenv curl -fLo ~/.local/bin/contain https://raw.githubusercontent.com/serverwentdown/env/master/.local/bin/contain
chmod +x ~/.local/bin/runenv chmod +x ~/.local/bin/contain
runenv -h contain -h
``` ```
### macOS ### macOS, Fedora, Alpine, Ubuntu, Debian
[Install yadm](https://yadm.io/docs/install), and then clone.
```sh ```sh
brew install \ # Install yadm (macOS)
xz upx \ brew install yadm
\ # Install yadm (dirty method)
zsh-autosuggestions \ curl -fLo ~/.local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm
zsh-syntax-highlighting \ chmod +x /usr/local/bin/yadm
exa jq \ # Clone
neovim \
\
git \
pass gnupg \
\
python@3.9 \
go \
\
thefuck \
httpie \
dust \
yadm \
\
kubectl \
minio/stable/mc \
\
pinentry-mac
yadm clone git@github.com:serverwentdown/env.git yadm clone git@github.com:serverwentdown/env.git
``` ```
## Optional ## Optional
```sh ```sh
# requires private key
yadm decrypt
# requires yadm decrypt
git clone git@makerforce.io:ambrose/pass.git ~/.password-store git clone git@makerforce.io:ambrose/pass.git ~/.password-store
``` ```