11export PATH=" /usr/local/sbin:/usr/local/bin:$PATH "
2- export PATH=" /usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH " # homebrew ruby first in PATH
32export PATH=" ${HOME} /.cargo/bin:$PATH " # rust binary installation path
3+ # keg-only installs
4+ export PATH=" /usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH "
5+ export PATH=" /usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:$PATH "
6+ export PKG_CONFIG_PATH=" $PKG_CONFIG_PATH :/usr/local/opt/icu4c/lib/pkgconfig"
47export PATH=" /Library/TeX/texbin:$PATH " # mactex binary installation path (brew cask install mactex)
58
69# bash completion and integration
710
811[[ -r " /usr/local/etc/profile.d/bash_completion.sh" ]] && . " /usr/local/etc/profile.d/bash_completion.sh"
912test -e " ${HOME} /.iterm2_shell_integration.bash" && source " ${HOME} /.iterm2_shell_integration.bash"
13+ # init zoxide (rust) when available
14+ eval " $( zoxide init bash) " || true
1015
1116
1217# pyenv direnv
1318
1419eval " $( pyenv init -) "
1520eval " $( direnv hook bash) "
1621eval " $( pyenv virtualenv-init -) "
17- export PROMPT_COMMAND=' _pyenv_virtualenv_hook;_direnv_hook;__bp_precmd_invoke_cmd;__bp_interactive_mode; history -a;history -c;history -r'
22+ export PROMPT_COMMAND=' _pyenv_virtualenv_hook;_direnv_hook;history -a;history -c;history -r'
1823export PYENV_VIRTUALENV_DISABLE_PROMPT=1
1924
2025pyenv activate vv
@@ -30,6 +35,7 @@ export CXX="/usr/local/bin/g++-8"
3035# export HOMEBREW_CC="/usr/local/bin/gcc-8"
3136# export HOMEBREW_CXX="/usr/local/bin/g++-8"
3237export GPG_TTY=$( tty)
38+ export BASH_SILENCE_DEPRECATION_WARNING=1
3339
3440
3541# aliases
@@ -162,7 +168,11 @@ kubebranch() {
162168generate_password () {
163169 local defaultsize=42
164170 (( test - n "${1:- $defaultsize } " && test "${1:- $defaultsize } " - ge 0 ) && \
165- pwgen -s -N 3 -cny ${1:- $defaultsize } ) 2 >&- ;
171+ # -y or --symbols
172+ # Include at least one special symbol in the password
173+ # -B or --ambiguous
174+ # Don't include ambiguous characters in the password
175+ pwgen -s -N 3 -cnBy -r ";'\`\"\|\#\$\&" ${1:- $defaultsize } ) 2 >&- ;
166176};
167177
168178# run last modified py file in home directory
0 commit comments