Skip to content

Commit 82c1606

Browse files
committed
ensure local bin applies before shims, fix prpg
1 parent 4dbbba0 commit 82c1606

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.bash_profile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ prepend_new_path_if_exists() {
1919
# this is to make cross-platform support cleaner.
2020
prepend_new_path_if_exists "/opt/homebrew/bin" # apple silicon homebrew bin
2121
prepend_new_path_if_exists "/opt/homebrew/sbin" # apple silicon homebrew static bin
22+
prepend_new_path_if_exists "$HOME/.asdf/shims"
2223
prepend_new_path_if_exists "$HOME/.local/bin"
2324
prepend_new_path_if_exists "$HOME/bin"
24-
prepend_new_path_if_exists "$HOME/.asdf/shims"
2525

2626
source_if_exists() {
2727
if [[ -s "$1" ]]; then

.bashrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ alias hist="history|tail"
2929
alias psa="ps auxwww"
3030
alias cdate="date '+%Y%m%d%H%M%S'"
3131

32-
# psuedo-random, insecure password generator
32+
# psudo-random password generator
3333
prpg() {
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

3738
reset_known_host() {

0 commit comments

Comments
 (0)