Attach to authentication splits now works
This commit is contained in:
parent
365544d343
commit
f51aae7bc2
|
@ -27,7 +27,7 @@ TIME=1
|
|||
if [ "${gpg_agent_info}" -eq 0 ]; then
|
||||
## Start a terminal emulator
|
||||
## Create new tmux splits to ask for gpg passphrase
|
||||
"${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION && tmux attach-session' &
|
||||
"${TERM_EMULATOR}" --title "${TERM_TITLE}" -e bash -c 'tmux source-file "${HOME}"/.tmux/splitAUTHENTICATION' &
|
||||
|
||||
# Minimum time to enter my passphrases
|
||||
sleep 5
|
||||
|
@ -63,8 +63,10 @@ if [ "${gpg_agent_info}" -eq 0 ]; then
|
|||
fi
|
||||
|
||||
# If gpg-agent already have a key in cache {{{
|
||||
else
|
||||
elif [ "${gpg_agent_info}" -gt 0 ]; then
|
||||
# Then, call real rofi-pass
|
||||
"${HOME}"/repos/rofi-pass/rofi-pass
|
||||
else # Not supposed to happen
|
||||
exit 2
|
||||
fi
|
||||
# }}}
|
||||
|
|
Loading…
Reference in New Issue