This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |