File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ prepend_new_path_if_exists() {
1919# this is to make cross-platform support cleaner.
2020prepend_new_path_if_exists " /opt/homebrew/bin" # apple silicon homebrew bin
2121prepend_new_path_if_exists " /opt/homebrew/sbin" # apple silicon homebrew static bin
22+ prepend_new_path_if_exists " $HOME /.asdf/shims"
2223prepend_new_path_if_exists " $HOME /.local/bin"
2324prepend_new_path_if_exists " $HOME /bin"
24- prepend_new_path_if_exists " $HOME /.asdf/shims"
2525
2626source_if_exists () {
2727 if [[ -s " $1 " ]]; then
Original file line number Diff line number Diff line change @@ -29,9 +29,10 @@ alias hist="history|tail"
2929alias psa=" ps auxwww"
3030alias cdate=" date '+%Y%m%d%H%M%S'"
3131
32- # psuedo -random, insecure password generator
32+ # psudo -random password generator
3333prpg () {
34- echo -n $RANDOM | openssl sha1 -binary | base64 | tr -d ' /+='
34+ local len=${1:- 16}
35+ openssl rand -base64 ${len} | tr -d ' /+=\n'
3536}
3637
3738reset_known_host () {
You can’t perform that action at this time.
0 commit comments