alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Add pashmenu
author
j3s
date
6 years ago
(Mar 12, 2020, 1:53 PM -0500)
commit
608bbe3f
608bbe3f18f10d2ba4d15e4a1ae03650d0514908
parent
4eab1efb
4eab1efb0cff5fbf11159b2d2f23fff780fd4757
+14
1 changed file
Expand all
Collapse all
Unified
Split
bin
pashmenu
+14
bin/pashmenu
Reviewed
···
1
1
+
#!/bin/sh -e
2
2
+
#
3
3
+
# posix i think
4
4
+
5
5
+
cd "$PASH_DIR"
6
6
+
7
7
+
# strip .gpg extension & preserve newlines; cut things; sort
8
8
+
passwords=$(find . -type f -name "*.gpg" -exec sh -c 'printf "${0%.gpg}\n"' {} \; | cut -d '/' -f 2- | sort)
9
9
+
10
10
+
password=$(printf '%s' "$passwords" | dmenu)
11
11
+
12
12
+
[ -n "$password" ] || exit
13
13
+
14
14
+
pash copy "$password"