[TMUX] Paste 1Password passwords with prefix+P
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
1752b31336
commit
604c1c6538
4 files changed
+98
-2
No files matched your search
@@ -1,4 +1,8 @@
|
||||
set-option -g default-shell /bin/zsh
|
||||
|
||||
# prefix+P: paste a password from 1Password into the pane (e.g. remote sudo)
|
||||
# (via run-shell: display-popup does not expand formats in its command)
|
||||
bind P run-shell -b "tmux display-popup -c '#{client_name}' -E -w 80% -h 50% -T ' 1Password ' '$HOME/.tmux/op_password_paste.zsh #{pane_id} #{client_name}'"
|
||||
#bind -Tcopy-mode-vi y send -X copy-pipe "pbcopy" \; display-message "copied to system clipboard"
|
||||
#bind C-p run "tmux set-buffer \"$pbpaste\"; tmux paste-buffer"
|
||||
#bind C-y run "tmux save-buffer - | pbcopy"
|
||||
Reference in new issue
Block a user