Skip to content

Instantly share code, notes, and snippets.

# Bitwarden CLI functions
# Logs in into the Bitwarden CLI interface and sets the environment variable BW_SESSION
# defining the Bitwarden session for future Bitwarden CLI commands.
function bwopen() {
if [ -z $BW_SESSION ];
then
export BW_SESSION=`bw unlock --raw`
if [ -z $BW_SESSION ];
then