Last active
October 26, 2022 23:33
-
-
Save anosatsuk124/92fa8d3465bf3d5e25643217ef584a34 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#! /usr/bin/env fish | |
set -gx BW_SESSION (tmux showenv BW_SESSION | cut -d= -f2) |
This file contains hidden or 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
#! /bin/sh | |
BW_SESSION=$(bw unlock --raw) | |
while [ $? -ne 0 ]; do | |
BW_SESSION=$(bw unlock --raw) | |
done | |
exec tmux new-session "$@" \; \ | |
setenv BW_SESSION "${BW_SESSION}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment