Skip to content

Commit a9bc3a9

Browse files
committed
feat(clip): use Termux clipboard cmd on Android
1 parent 89e0c75 commit a9bc3a9

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ cap_mkdb /etc/login.conf
396396
- `PAGO_CLIP`:
397397
The command to use to copy text to the clipboard.
398398
The default differs by platform:
399+
- Android: `termux-clipboard-set`
399400
- Linux and BSD: `xclip -in -selection clip`
400401
- macOS: `copy`
401402
- `PAGO_CONFIRM`:

config_android.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
//go:build android
2+
3+
// pago - a command-line password manager.
4+
//
5+
// License: MIT.
6+
// See the file LICENSE.
7+
8+
package pago
9+
10+
const (
11+
DefaultClip = "termux-clipboard-set"
12+
)

config_posix.go renamed to config_default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build !darwin && !windows
1+
//go:build !(android || darwin || windows)
22

33
// pago - a command-line password manager.
44
//

0 commit comments

Comments
 (0)