40 lines
1.3 KiB
Markdown
40 lines
1.3 KiB
Markdown
# 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
|
|
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
|
|
```
|
|
|
|
# Kitty
|
|
|
|
```bash
|
|
curl -L https://sw.kovidgoyal.net/kitty/installer.sh | sh /dev/stdin
|
|
mkdir -p "$HOME/.local/bin"
|
|
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/"
|
|
sed -i "s|Icon=kitty|Icon=$HOME/.local/kitty.app/share/icons/hicolor/256x256/apps/kitty.png|g" $HOME/.local/share/applications/kitty*.desktop
|
|
```
|
|
|
|
# Chezmoi
|
|
|
|
```bash
|
|
sh -c "$(curl -fsLS chezmoi.io/get)"
|
|
mv ./bin/chezmoi "$HOME/.local/bin/"
|
|
chezmoi init --apply ssh://git@git.penguincoder.org:2222/penguincoder/dotfiles.git
|
|
```
|
|
|
|
# Gitea token
|
|
|
|
```bash
|
|
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"
|
|
```
|