aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-08-06 16:21:51 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-08-06 16:21:51 -0400
commit0cf2eaec00323af4c9af97528ca0391b1b62d7ce (patch)
treec26af5992a9ad6364476075b5724269f149ec85a /mkshrc
parent81de7c27b3dc4195965111f3fdf24b4575152916 (diff)
downloaddotfiles-0cf2eaec00323af4c9af97528ca0391b1b62d7ce.tar.gz
dotfiles-0cf2eaec00323af4c9af97528ca0391b1b62d7ce.tar.xz
Add in a pwgen specifically for banks that have stupid character restrictions
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/mkshrc b/mkshrc
index 6decdf8..8674cfb 100644
--- a/mkshrc
+++ b/mkshrc
@@ -38,6 +38,11 @@ setaliases() {
# Fun fact, Gnucash doesn't play nice when built against musl as a libc...
# go figure
alias gnucash_locale_fix='export LC_ALL=C; unset LANGUAGE; gnucash'
+ pwgenForBanks() {
+ set -x
+ pwgen -r '[-#{};[:"'"'"'^()?><.|\/,`=]' -ncsy "$@"
+ set +x
+ }
if [ "$(uname)" = "Linux" ] ; then
# Sets capslock to be another control key, only works with PS2 keyboards