diff options
| author | Mitch Riedstra <mitch@riedstra.us> | 2020-08-06 16:21:51 -0400 |
|---|---|---|
| committer | Mitch Riedstra <mitch@riedstra.us> | 2020-08-06 16:21:51 -0400 |
| commit | 0cf2eaec00323af4c9af97528ca0391b1b62d7ce (patch) | |
| tree | c26af5992a9ad6364476075b5724269f149ec85a | |
| parent | 81de7c27b3dc4195965111f3fdf24b4575152916 (diff) | |
| download | dotfiles-0cf2eaec00323af4c9af97528ca0391b1b62d7ce.tar.gz dotfiles-0cf2eaec00323af4c9af97528ca0391b1b62d7ce.tar.xz | |
Add in a pwgen specifically for banks that have stupid character restrictions
| -rw-r--r-- | mkshrc | 5 | ||||
| -rw-r--r-- | shell/aliases | 5 |
2 files changed, 10 insertions, 0 deletions
@@ -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 diff --git a/shell/aliases b/shell/aliases index f5aa9e0..97eea7e 100644 --- a/shell/aliases +++ b/shell/aliases @@ -25,6 +25,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 |
