We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a19ae9e commit 4dbd8a6Copy full SHA for 4dbd8a6
2 files changed
.bashrc
@@ -29,9 +29,9 @@ alias hist="history|tail"
29
alias psa="ps auxwww"
30
alias cdate="date '+%Y%m%d%H%M%S'"
31
32
-# random password generator
33
-rpg(){
34
- size=${1:-16}; ruby -e "require 'securerandom'; puts SecureRandom.urlsafe_base64($size);"
+# psuedo-random, insecure password generator
+prpg() {
+ echo -n $RANDOM | openssl sha1 -binary | base64 | tr -d '/+=' | | cut -c-16
35
}
36
37
reset_known_host() {
.githelpers
@@ -94,6 +94,7 @@ reset_wildcard(){
94
95
96
# Accepts a pattern and switches to the first branch that matches it.
97
+# Provide the `--all` flag to include remote branches as well.
98
switch_wildcard() {
99
local all_branches=false
100
while [[ "$1" =~ ^- && ! "$1" == "--" ]]; do case $1 in
0 commit comments