Requirements
October 4, 2024 ยท View on GitHub
The following should be installed and on your PATH:
- bws Bitwarden Secrets Manager CLI
- jq to manipulate the JSON
- fzf for selecting from multiple items
- A utility available for your environment to copy text from a terminal, e.g. xclip for Xorg or clipboard for Wayland. By default zsh_bws uses clipboard, but you can set the command via the
ZSH_BWS_COPY_CMDvariable. - The
BWS_ACCESS_TOKENvariable is set at execution time.
Installation
OhMyZsh (manual)
-
Clone this repository into
$ZSH_CUSTOM/plugins(by default~/.oh-my-zsh/custom/plugins)git clone https://github.com/elogiclab/zsh-bws ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-bws -
Add the plugin to the list of plugins for Oh My Zsh to load (inside
~/.zshrc):plugins=( # other plugins... zsh-bws )
Antigen
Add to your ~/.zshrc the following line:
antigen use oh-my-zsh
# Other bundles
antigen bundle elogiclab/zsh-bws@main