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
|
if [ "${gpg_agent_info}" -eq 0 ]; then
|
||||||
## Start a terminal emulator
|
## Start a terminal emulator
|
||||||
## Create new tmux splits to ask for gpg passphrase
|
## 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
|
# Minimum time to enter my passphrases
|
||||||
sleep 5
|
sleep 5
|
||||||
|
@ -63,8 +63,10 @@ if [ "${gpg_agent_info}" -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If gpg-agent already have a key in cache {{{
|
# If gpg-agent already have a key in cache {{{
|
||||||
else
|
elif [ "${gpg_agent_info}" -gt 0 ]; then
|
||||||
# Then, call real rofi-pass
|
# Then, call real rofi-pass
|
||||||
"${HOME}"/repos/rofi-pass/rofi-pass
|
"${HOME}"/repos/rofi-pass/rofi-pass
|
||||||
|
else # Not supposed to happen
|
||||||
|
exit 2
|
||||||
fi
|
fi
|
||||||
# }}}
|
# }}}
|
||||||
|
|
Loading…
Reference in New Issue