update README

This commit is contained in:
Navid Sassan 2024-02-27 11:38:29 +01:00
parent ecd89524e3
commit 6c6cbb72ea
2 changed files with 39 additions and 2 deletions

View File

@ -2,7 +2,7 @@
[package] [package]
name = "bw-menu" name = "bw-menu"
version = "0.1.0" version = "0.1.0-next"
authors = ["Navid Sassan <navid@sassan.ch>"] authors = ["Navid Sassan <navid@sassan.ch>"]
edition = "2021" edition = "2021"
license = "The Unlicense" license = "The Unlicense"

View File

@ -1,3 +1,40 @@
# bw-menu # bw-menu
Bitwarden Menu Bitwarden Menu
## Installation
```bash
cat > ~/.cargo/config.toml << 'EOF'
[registries.gitea]
index = "https://git.navidsassan.ch/navid.sassan/_cargo-index.git"
[net]
git-fetch-with-cli = true
EOF
cargo add bw-menu --registry gitea
~/.cargo/bin/bw-menu --version
# install dependency
sudo dnf install rofi
# start bw serve
export BW_SESSION="$(bw unlock --raw)" && bw serve --hostname 127.0.0.1&
# get dropdown (takes a second)
bw-menu select
# get password of last selected entry
bw-menu history get 0 password
# list 5 last selected entries (currently saved in `/tmp`)
bw-menu history list
```
## Known Issues
* The collections of entries that are in multiple collections are not displayed correctly
* The history is reset after every reboot if `/tmp` is not persistent
A re-write in Python is planned, during which these issues will be fixed.