punkfairie
fcfff9cee8
Update .config/packages/archgirlie Update .ssh/id_ed25519.pub Update .ssh/id_ed25519
21 lines
351 B
Bash
Executable file
21 lines
351 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
type bw >/dev/null 2>&1 && exit
|
|
|
|
case "$(uname -s)" in
|
|
Darwin)
|
|
brew install bitwarden-cli
|
|
;;
|
|
Linux)
|
|
if command -v yay 2>&1; then
|
|
yay -S bitwarden-cli
|
|
elif command -v pacman 2>&1; then
|
|
pacman -S bitwarden-cli
|
|
elif command -v npm 2>&1; then
|
|
npm install -g @bitwarden/cli
|
|
else
|
|
echo "unsupported OS"
|
|
exit 1
|
|
fi
|
|
;;
|
|
esac
|