Skip to content

Commit

Permalink
♻️ Refactor and upgrade to OS X 10.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelange committed Jan 9, 2021
1 parent e57e97f commit f15bef6
Show file tree
Hide file tree
Showing 12 changed files with 379 additions and 177 deletions.
16 changes: 13 additions & 3 deletions .bash_profile
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
export PATH="/usr/local/sbin:/usr/local/bin:$PATH"
export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH" # homebrew ruby first in PATH
export PATH="${HOME}/.cargo/bin:$PATH" # rust binary installation path
# keg-only installs
export PATH="/usr/local/opt/ruby/bin:/usr/local/lib/ruby/gems/2.7.0/bin:$PATH"
export PATH="/usr/local/opt/icu4c/bin:/usr/local/opt/icu4c/sbin:$PATH"
export PKG_CONFIG_PATH="$PKG_CONFIG_PATH:/usr/local/opt/icu4c/lib/pkgconfig"
export PATH="/Library/TeX/texbin:$PATH" # mactex binary installation path (brew cask install mactex)

# bash completion and integration

[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
# init zoxide (rust) when available
eval "$(zoxide init bash)" || true


# pyenv direnv

eval "$(pyenv init -)"
eval "$(direnv hook bash)"
eval "$(pyenv virtualenv-init -)"
export PROMPT_COMMAND='_pyenv_virtualenv_hook;_direnv_hook;__bp_precmd_invoke_cmd;__bp_interactive_mode;history -a;history -c;history -r'
export PROMPT_COMMAND='_pyenv_virtualenv_hook;_direnv_hook;history -a;history -c;history -r'
export PYENV_VIRTUALENV_DISABLE_PROMPT=1

pyenv activate vv
Expand All @@ -30,6 +35,7 @@ export CXX="/usr/local/bin/g++-8"
# export HOMEBREW_CC="/usr/local/bin/gcc-8"
# export HOMEBREW_CXX="/usr/local/bin/g++-8"
export GPG_TTY=$(tty)
export BASH_SILENCE_DEPRECATION_WARNING=1


# aliases
Expand Down Expand Up @@ -162,7 +168,11 @@ kubebranch() {
generate_password() {
local defaultsize=42
((test -n "${1:-$defaultsize}" && test "${1:-$defaultsize}" -ge 0) && \
pwgen -s -N 3 -cny ${1:-$defaultsize}) 2>&-;
# -y or --symbols
# Include at least one special symbol in the password
# -B or --ambiguous
# Don't include ambiguous characters in the password
pwgen -s -N 3 -cnBy -r ";'\`\"\|\#\$\&" ${1:-$defaultsize}) 2>&-;
};
# run last modified py file in home directory
Expand Down
13 changes: 2 additions & 11 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"files": null,
"lines": null
},
"generated_at": "2020-07-07T11:44:36Z",
"generated_at": "2021-01-09T15:20:59Z",
"plugins_used": [
{
"name": "AWSKeyDetector"
Expand Down Expand Up @@ -57,16 +57,7 @@
"name": "TwilioKeyDetector"
}
],
"results": {
"README.md": [
{
"hashed_secret": "60b9c35a33c0f5acde612f2984b6917cb35d6d54",
"is_verified": false,
"line_number": 214,
"type": "Secret Keyword"
}
]
},
"results": {},
"version": "0.13.1",
"word_list": {
"file": null,
Expand Down
Loading

0 comments on commit f15bef6

Please sign in to comment.