dotfiles/README.md

48 lines
2.0 KiB
Markdown
Raw Normal View History

2022-05-10 14:01:42 -04:00
# Bitwarden
```bash
curl -Lo bw.zip 'https://vault.bitwarden.com/download/?app=cli&platform=linux'
unzip bw.zip
mkdir -p "$HOME/.local/bin" "$HOME/.config/bash"
install -m 755 bw "$HOME/.local/bin/"
rm -f bw bw.zip
2022-05-10 14:01:42 -04:00
bw config server https://bitwarden.penguincoder.org
bw login
echo "export BW_SESSION=$(bw unlock --raw)" > "$HOME/.config/bash/bitwarden.sh"
source "$HOME/.config/bash/bitwarden.sh"
bw sync
2022-11-09 09:21:16 -05:00
bw get attachment b0b0262ab221403d91ef --itemid b4c098e4-88a1-4b41-819c-cedc90088de0 --output ~/.ssh/github
bw get attachment 2731fbaa949e3d6477e7 --itemid b4c098e4-88a1-4b41-819c-cedc90088de0 --output ~/.ssh/github.pub
bw get attachment c29bed4bb96410e1d50b --itemid b4c098e4-88a1-4b41-819c-cedc90088de0 --output ~/.ssh/gitea
bw get attachment ac30a1167c11c2a9a2c0 --itemid b4c098e4-88a1-4b41-819c-cedc90088de0 --output ~/.ssh/gitea.pub
bw get attachment 56706aa722971d4bc030 --itemid b4c098e4-88a1-4b41-819c-cedc90088de0 --output ~/.ssh/selfhosted
bw get attachment 9b882f99ef5abce6fb85 --itemid b4c098e4-88a1-4b41-819c-cedc90088de0 --output ~/.ssh/selfhosted.pub
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*
2022-05-10 14:01:42 -04:00
```
2022-05-10 13:58:50 -04:00
# Kitty
```bash
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
2022-06-29 13:30:20 -04:00
mkdir -p "$HOME/.local/bin"
2022-05-10 13:58:50 -04:00
ln -s "$HOME/.local/kitty.app/bin/kitty" "$HOME/.local/bin/"
cp "$HOME/.local/kitty.app/share/applications/kitty.desktop" "$HOME/.local/share/applications/"
cp "$HOME/.local/kitty.app/share/applications/kitty-open.desktop" "$HOME/.local/share/applications/"
2022-06-29 13:30:20 -04:00
sed -i "s|Icon=kitty|Icon=$HOME/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" $HOME/.local/share/applications/kitty*.desktop
2022-05-10 13:58:50 -04:00
```
# Chezmoi
```bash
sh -c "$(curl -fsLS chezmoi.io/get)"
mv ./bin/chezmoi "$HOME/.local/bin/"
2022-08-12 16:05:46 -04:00
chezmoi init --apply ssh://git@git.penguincoder.org:2222/penguincoder/dotfiles.git
2022-05-11 08:53:29 -04:00
```
2022-08-19 14:59:41 -04:00
2022-08-25 13:06:06 -04:00
# Gitea token
2022-08-19 14:59:41 -04:00
```bash
2022-08-25 13:06:06 -04:00
echo -e "export GITEA_TOKEN=$(bw get item gitea | jq -r '.fields[] | select(.name == "token").value')\nexport GITEA_HOST=https://git.penguincoder.org" | tee "$HOME/.config/bash/gitea.sh"
2022-08-19 14:59:41 -04:00
```