Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b5241cc77 | ||
|
|
15f4a3d565 | ||
|
|
ec10ad231e | ||
|
|
d9b253a2f3 | ||
|
|
4cb9620cdd | ||
|
|
2fd47c88bd | ||
|
|
1d1c771d5e | ||
|
|
6cfed08453 | ||
|
|
2ae0776a3f | ||
|
|
add74d0754 | ||
|
|
f760035748 |
74
.aliases
74
.aliases
@@ -10,6 +10,45 @@ git() {
|
||||
}
|
||||
|
||||
|
||||
# ai tools
|
||||
# ---------------
|
||||
### alias opencode="echo 'use aws-* aliases (opus, deepseek, llama, mistral, qwen, gemma, kimi)'"
|
||||
# Use the aws profile claude to run the command claude
|
||||
|
||||
# ANTHROPIC
|
||||
alias aws-claude="ANTHROPIC_MODEL='global.anthropic.claude-opus-4-6-v1' aws-vault exec claude -- claude"
|
||||
alias aws-opus="ANTHROPIC_MODEL='global.anthropic.claude-opus-4-6-v1' aws-vault exec claude -- claude"
|
||||
alias aws-sonnet="ANTHROPIC_MODEL='global.anthropic.claude-sonnet-4-6' aws-vault exec claude -- claude"
|
||||
|
||||
# OPENCODE ANTHROPIC
|
||||
alias aws-opencode-claude="aws-vault exec claude -- opencode --model amazon-bedrock/anthropic.claude-opus-4-6-v1"
|
||||
alias aws-opencode-opus="aws-vault exec claude -- opencode --model amazon-bedrock/anthropic.claude-opus-4-6-v1"
|
||||
alias aws-opencode-sonnet="aws-vault exec claude -- opencode --model amazon-bedrock/anthropic.claude-sonnet-4-6"
|
||||
|
||||
# Plain Opencode
|
||||
alias aws-opencode="aws-vault exec claude -- opencode"
|
||||
|
||||
# Advanced Reasoning / Specialist
|
||||
alias aws-deepseek="aws-vault exec claude -- opencode --model amazon-bedrock/deepseek.v3.2"
|
||||
alias aws-qwen="aws-vault exec claude -- opencode --model amazon-bedrock/qwen.qwen3-coder-next"
|
||||
|
||||
# Highly Capable Alternatives
|
||||
alias aws-llama="aws-vault exec claude -- opencode --model amazon-bedrock/meta.llama3-3-70b-instruct-v1:0"
|
||||
alias aws-mistral="aws-vault exec claude -- opencode --model amazon-bedrock/mistral.mistral-large-3-675b-instruct"
|
||||
alias aws-gemma="aws-vault exec claude -- opencode --model amazon-bedrock/google.gemma-3-27b-it"
|
||||
alias aws-nova="aws-vault exec claude -- opencode --model amazon-bedrock/amazon.nova-pro-v1:0"
|
||||
|
||||
# OPENCODE PROFILES (oh-my-openagent config swap)
|
||||
alias omo-anthropic="command cp ~/natera/creid/oh-my-openagent-config/anthropic.json ~/.config/opencode/oh-my-openagent.json && echo 'omo: anthropic'"
|
||||
alias omo-anthropic47="command cp ~/natera/creid/oh-my-openagent-config/anthropic47.json ~/.config/opencode/oh-my-openagent.json && echo 'omo: anthropic47'"
|
||||
alias omo-mistral="command cp ~/natera/creid/oh-my-openagent-config/mistral-test.json ~/.config/opencode/oh-my-openagent.json && echo 'omo: mistral-test'"
|
||||
alias omo-qwen="command cp ~/natera/creid/oh-my-openagent-config/qwen-test.json ~/.config/opencode/oh-my-openagent.json && echo 'omo: qwen-test'"
|
||||
alias omo-multi="command cp ~/natera/creid/oh-my-openagent-config/multi-provider.json ~/.config/opencode/oh-my-openagent.json && echo 'omo: multi-provider'"
|
||||
alias omo-budget="command cp ~/natera/creid/oh-my-openagent-config/budget.json ~/.config/opencode/oh-my-openagent.json && echo 'omo: budget'"
|
||||
|
||||
alias council="OPENCODE_CONFIG_DIR=~creid/charlesreid1/opencode-config/opencode-council aws-opencode"
|
||||
|
||||
|
||||
# get rid of stupid annoying badges
|
||||
# ---------------------------------
|
||||
alias clearbadges='defaults write com.apple.systempreferences AttentionPrefBundleIDs 0 && killall Dock'
|
||||
@@ -34,8 +73,12 @@ alias uuid="uuidgen"
|
||||
alias vp="[ -d vp ] || virtualenv -p python3 vp && source vp/bin/activate"
|
||||
if [[ "${HOSTNAME}" == "aptos" ]]; then
|
||||
alias vpp="[ -d vpp ] || virtualenv --python ${HOME}/.pyenv/versions/pypy3.9-7.3.9/bin/pypy3 vpp && source vpp/bin/activate"
|
||||
else
|
||||
alias vpp="[ -d vpp ] || virtualenv -p pypy3 vpp && source vpp/bin/activate"
|
||||
elif [[ "${HOSTNAME}" == "maya" ]]; then
|
||||
alias vpp="[ -d vpp ] || virtualenv --python ${HOME}/.pyenv/versions/pypy3.10-7.3.13/bin/pypy3 vpp && source vpp/bin/activate"
|
||||
elif [[ "${HOSTNAME}" == "kraken" ]]; then
|
||||
alias vpp="[ -d vpp ] || virtualenv --python ${HOME}/.pyenv/versions/pypy3.11-7.3.20/bin/pypy3 vpp && source vpp/bin/activate"
|
||||
elif [[ "${HOSTNAME}" == "creid-mac" ]]; then
|
||||
alias vpp="[ -d vpp ] || virtualenv --python ${HOME}/.pyenv/versions/pypy3.11-7.3.20/bin/pypy3 vpp && source vpp/bin/activate"
|
||||
fi
|
||||
|
||||
# one-letter aliases
|
||||
@@ -73,34 +116,29 @@ alias mv='mv -i'
|
||||
# ls aliases
|
||||
# --------------------
|
||||
# Detect which `ls` flavor is in use
|
||||
# https://gist.github.com/skyzyx/3438280b18e4f7c490db8a2a2ca0b9da
|
||||
|
||||
LS=$(which ls)
|
||||
if $LS --color > /dev/null 2>&1; then # GNU `ls`
|
||||
colorflag="--color"
|
||||
export LS_COLORS='no=00:fi=00:di=01;31:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.ogg=01;35:*.mp3=01;35:*.wav=01;35:'
|
||||
groupflag="--group-directories-first"
|
||||
else # macOS `ls`
|
||||
colorflag="-G"
|
||||
export LSCOLORS='BxBxhxDxfxhxhxhxhxcxcx'
|
||||
groupflag="--group-directories-first"
|
||||
fi
|
||||
#if ls --version >/dev/null 2>&1; then
|
||||
# # GNU ls
|
||||
#else
|
||||
# # BSD ls
|
||||
#fi
|
||||
|
||||
LSBIN=$(which ls)
|
||||
|
||||
|
||||
alias ls="$LS -1 ${colorflag} ${groupflag}"
|
||||
# the --color flag works with either verison of ls
|
||||
alias ls='$LSBIN -lh --color'
|
||||
alias sl='ls'
|
||||
|
||||
|
||||
|
||||
# List all files colorized in long format
|
||||
alias l="$LS -lhAF ${colorflag}"
|
||||
alias l="ls -lhAF --color"
|
||||
alias ll="l"
|
||||
|
||||
# List all files colorized in long format, including dot files
|
||||
alias la="l -a"
|
||||
|
||||
# List only directories
|
||||
alias lsd="$LS -lF ${colorflag} | grep --color=never '^d'"
|
||||
alias lsd="ls -lF --color | grep --color=never '^d'"
|
||||
|
||||
|
||||
alias lr='ls -r' # reverse
|
||||
|
||||
123
.bash_profile
123
.bash_profile
@@ -5,6 +5,40 @@
|
||||
# to add your own non-committed machine-specific settings,
|
||||
# use ~/.extra
|
||||
|
||||
|
||||
###################################
|
||||
# Natera Netskope
|
||||
export AWS_CA_BUNDLE=~/.aws/nskp_config/netskope-cert-bundle.pem
|
||||
export REQUESTS_CA_BUNDLE=~/.aws/nskp_config/netskope-cert-bundle.pem
|
||||
export SSL_CERT_FILE=~/.aws/nskp_config/netskope-cert-bundle.pem
|
||||
export NODE_EXTRA_CA_CERTS=~/.aws/nskp_config/netskope-cert-bundle.pem
|
||||
|
||||
##################################
|
||||
# Natera Claude Code
|
||||
# https://go.confluence.natera.com/wiki/spaces/SRETOOLS/pages/383356332/Claude+Code+Onboarding
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
export CLAUDE_CODE_USE_BEDROCK=1
|
||||
export AWS_REGION=us-west-2
|
||||
export ANTHROPIC_SMALL_FAST_MODEL_AWS_REGION=us-west-2
|
||||
export AWS_PROFILE="claude"
|
||||
|
||||
export CLAUDE_CODE_MAX_OUTPUT_TOKENS=64000
|
||||
export MAX_THINKING_TOKENS=4096
|
||||
|
||||
#export ANTHROPIC_MODEL=us.anthropic.claude-sonnet-4-20250514-v1:0
|
||||
#export ANTHROPIC_MODEL=us.anthropic.claude-opus-4-1-20250805-v1:0
|
||||
#export ANTHROPIC_MODEL=us.anthropic.claude-sonnet-4-5-20250929-v1:0
|
||||
#export ANTHROPIC_MODEL=global.anthropic.claude-opus-4-5-20251101-v1:0
|
||||
#export ANTHROPIC_MODEL=global.anthropic.claude-opus-4-6-v1:0
|
||||
export ANTHROPIC_MODEL=global.anthropic.claude-opus-4-6-v1
|
||||
export ANTHROPIC_DEFAULT_HAIKU_MODEL=us.anthropic.claude-haiku-4-5-20251001-v1:0
|
||||
|
||||
export AWS_VAULT_KEYCHAIN_NAME="login"
|
||||
###################################
|
||||
|
||||
# SILENCE
|
||||
export BASH_SILENCE_DEPRECATION_WARNING=1
|
||||
|
||||
# Must
|
||||
EDITOR="vim"
|
||||
GIT_EDITOR="vim"
|
||||
@@ -12,76 +46,24 @@ GIT_EDITOR="vim"
|
||||
# Better man pages
|
||||
PAGER="most"
|
||||
|
||||
# Go stuff
|
||||
GOROOT=$HOME/go
|
||||
GOPATH=$HOME/go
|
||||
|
||||
# Set $PATH here
|
||||
PATH="${HOME}/scripts:${PATH}"
|
||||
PATH="/usr/local/bin:$PATH"
|
||||
PATH="/usr/local/sbin:${PATH}" # homebrew admin tools
|
||||
PATH="${PATH}:${GOROOT}/bin"
|
||||
PATH="/usr/local/opt/coreutils/libexec/gnubin:${PATH}"
|
||||
PATH="/opt/homebrew/bin:$PATH"
|
||||
PATH="/opt/homebrew/sbin:${PATH}" # homebrew admin tools
|
||||
PATH="${HOME}/bin:${PATH}"
|
||||
if [[ ("$HOSTNAME" == "seawater") || ("$HOSTNAME" == "bascom") ]]; then
|
||||
PATH="${HOME}/bin/elasticsearch-5.4.2/bin:${PATH}"
|
||||
|
||||
# assume-role cli util:
|
||||
# Add homebrew-installed ruby to path:
|
||||
# (WARNING: THIS CAN CAUSE PROBLEMS!)
|
||||
export PATH="/usr/local/opt/ruby/bin:$PATH"
|
||||
|
||||
# Add homebrew-ruby-gem-installed packages to path:
|
||||
export PATH="/usr/local/lib/ruby/gems/2.6.0/bin:$PATH"
|
||||
|
||||
# aws - load config file when using assume-role
|
||||
export AWS_SDK_LOAD_CONFIG="1"
|
||||
fi
|
||||
PATH="/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"
|
||||
|
||||
# Tell git not to look for getext.sh
|
||||
# since pyenv has trouble with that
|
||||
export GIT_INTERNAL_GETTEXT_TEST_FALLBACKS=1
|
||||
|
||||
if [[ "$HOSTNAME" == "bascom" ]]; then
|
||||
# git tab completion
|
||||
source ${HOME}/.git-completion.bash
|
||||
fi
|
||||
|
||||
if [[ "$HOSTNAME" == "maya" ]]; then
|
||||
|
||||
# Setting PATH for homebrew
|
||||
PATH="$HOME/.local/bin:$PATH"
|
||||
PATH="$HOME/Library/Python/3.6/bin:$PATH"
|
||||
|
||||
# pypy
|
||||
# this should go after /usr/local/bin
|
||||
PATH="${PATH}:/usr/local/share/pypy3"
|
||||
|
||||
### # some weird new homebrew thing??
|
||||
### # this is where python -> python3 lives now
|
||||
### # https://stackoverflow.com/a/45228901
|
||||
### PATH="/usr/local/opt/python/libexec/bin:${PATH}"
|
||||
|
||||
# Set up google cloud SDK
|
||||
F1="/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc"
|
||||
F2="/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc"
|
||||
if [[ -f $F1 ]]; then
|
||||
source $F1
|
||||
fi
|
||||
if [[ -f $F2 ]]; then
|
||||
source $F2
|
||||
fi
|
||||
|
||||
# git tab completion
|
||||
source ${HOME}/.git-completion.bash
|
||||
|
||||
# Enable tab completion for `g` by marking it as an alias for `git`
|
||||
if type _git &> /dev/null && [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
|
||||
complete -o default -o nospace -F _git g;
|
||||
fi;
|
||||
fi
|
||||
##################################################
|
||||
# Natera-specific things
|
||||
|
||||
# Homebrew
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
|
||||
##################################################
|
||||
# goenv installer
|
||||
export GOENV_ROOT="$HOME/.goenv"
|
||||
export PATH="$GOENV_ROOT/bin:$PATH"
|
||||
@@ -96,7 +78,6 @@ export PATH="$GOENV_ROOT/bin:$PATH"
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
export PATH="$PYENV_ROOT/bin:$PATH"
|
||||
eval "$(pyenv init --path)"
|
||||
eval "$(pyenv init -)"
|
||||
|
||||
export PATH
|
||||
|
||||
@@ -168,9 +149,17 @@ if [ -f /etc/bash_completion ]; then
|
||||
source /etc/bash_completion;
|
||||
fi;
|
||||
|
||||
if [[ "$HOSTNAME" == "bascom" ]]; then
|
||||
# Enable tab completion for `g` by marking it as an alias for `git`
|
||||
if type _git &> /dev/null && [ -f /usr/local/etc/bash_completion.d/git-completion.bash ]; then
|
||||
complete -o default -o nospace -F _git g;
|
||||
fi;
|
||||
fi
|
||||
# # nvm
|
||||
# # This is infuriatingly slow.
|
||||
# # Takes a full second to get through this, every terminal tab, every terminal window, every time
|
||||
# export NVM_DIR="$HOME/.nvm"
|
||||
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
# shut up
|
||||
touch ${HOME}/.hushlogin
|
||||
export BASH_SILENCE_DEPRECATION_WARNING=1
|
||||
export FILTER_BRANCH_SQUELCH_WARNING=1
|
||||
|
||||
# Added by Antigravity
|
||||
export PATH="/Users/creid/.antigravity/antigravity/bin:$PATH"
|
||||
|
||||
@@ -71,7 +71,7 @@ PS1="\[\033]0;\W\007\]"; # working directory base name
|
||||
PS1+="\[${bold}\]\n"; # newline
|
||||
PS1+="\[${userStyle}\]\u"; # username
|
||||
PS1+="\[${white}\] on ";
|
||||
PS1+="\[${hostStyle}\]\h"; # host
|
||||
PS1+="\[${hostStyle}\]natty"; # host
|
||||
PS1+="\[${white}\] at ";
|
||||
PS1+="[ \D{%Y-%m-%d} - \t ] "; # date and time stamp
|
||||
PS1+="in ";
|
||||
|
||||
38
.gitconfig
38
.gitconfig
@@ -8,15 +8,12 @@
|
||||
[commit]
|
||||
gpgsign = true
|
||||
[user]
|
||||
email = charlesreid1@gmail.com
|
||||
name = Charles Reid
|
||||
signingkey = 078B7759B68B353A # aptos
|
||||
[includeIf "gitdir:~/codes/"]
|
||||
email = creid@natera.com
|
||||
name = Chaz Reid
|
||||
signingkey = 836EB56BCCC83AE08C8A6F966DCC6C631CC1CC59
|
||||
[includeIf "gitdir:~/charlesreid1/"]
|
||||
path = .gitconfig_charlesreid1
|
||||
# path = ~/.gitconfig_charlesreid1
|
||||
[includeIf "gitdir:~/golly/"]
|
||||
path = .gitconfig_ch4zm
|
||||
# path = ~/.gitconfig_ch4zm
|
||||
|
||||
[credential]
|
||||
helper = cache
|
||||
@@ -235,33 +232,6 @@
|
||||
# Make `git push` push relevant annotated tags when pushing branches out.
|
||||
followTags = true
|
||||
|
||||
# URL shorthands
|
||||
|
||||
|
||||
[url "ssh://git@git.charlesreid1.com:222/"]
|
||||
|
||||
insteadOf = "cmr:"
|
||||
|
||||
|
||||
[url "git@github.com:"]
|
||||
|
||||
insteadOf = "gh:"
|
||||
pushInsteadOf = "github:"
|
||||
pushInsteadOf = "git://github.com/"
|
||||
|
||||
[url "git://github.com/"]
|
||||
|
||||
insteadOf = "github:"
|
||||
|
||||
[url "git@gist.github.com:"]
|
||||
|
||||
insteadOf = "gst:"
|
||||
pushInsteadOf = "gist:"
|
||||
pushInsteadOf = "git://gist.github.com/"
|
||||
|
||||
[url "git://gist.github.com/"]
|
||||
|
||||
insteadOf = "gist:"
|
||||
|
||||
[rerere]
|
||||
|
||||
|
||||
5
.gitconfig_charlesreid1
Normal file
5
.gitconfig_charlesreid1
Normal file
@@ -0,0 +1,5 @@
|
||||
[user]
|
||||
email = charlesreid1@gmail.com
|
||||
name = Charles Reid
|
||||
[core]
|
||||
sshCommand = ssh -i ~/.ssh/id_charlesreid1_ed25519 -o IdentitiesOnly=yes
|
||||
62
.vimrc
62
.vimrc
@@ -152,7 +152,7 @@ let &guicursor = &guicursor . ",a:blinkon0"
|
||||
"
|
||||
" now you need to "infect" yourself
|
||||
" (questionable word choices...)
|
||||
execute pathogen#infect()
|
||||
" execute pathogen#infect()
|
||||
|
||||
|
||||
|
||||
@@ -250,17 +250,17 @@ set textwidth=115
|
||||
" end up driving you mad.
|
||||
" Set textwidth to 0 or a different number for known (code) filetypes.
|
||||
|
||||
" > Bugbear's documentation explains 88 vs 80:
|
||||
" > "it's like highway speed limits, we won't bother
|
||||
" > you if you overdo it by a few km/h".
|
||||
"
|
||||
" Turn character 80/88 red
|
||||
" (for visibility conforming to
|
||||
" coding standards)
|
||||
" https://stackoverflow.com/questions/23246962/vim-highlight-a-single-character-at-column-80#23247938
|
||||
hi Bang ctermfg=red guifg=red
|
||||
"match Bang /\%>87v.*\%<89v/
|
||||
match Bang /\%>79v.*\%<81v/
|
||||
""" " > Bugbear's documentation explains 88 vs 80:
|
||||
""" " > "it's like highway speed limits, we won't bother
|
||||
""" " > you if you overdo it by a few km/h".
|
||||
""" "
|
||||
""" " Turn character 80/88 red
|
||||
""" " (for visibility conforming to
|
||||
""" " coding standards)
|
||||
""" " https://stackoverflow.com/questions/23246962/vim-highlight-a-single-character-at-column-80#23247938
|
||||
""" hi Bang ctermfg=red guifg=red
|
||||
""" "match Bang /\%>87v.*\%<89v/
|
||||
""" match Bang /\%>79v.*\%<81v/
|
||||
|
||||
|
||||
|
||||
@@ -340,25 +340,25 @@ function! DisableIndent()
|
||||
set indentexpr&
|
||||
endfunction
|
||||
|
||||
" fix latex highlighting in markdown
|
||||
function! MathAndLiquid()
|
||||
"" Define certain regions
|
||||
" Block math. Look for "$$[anything]$$"
|
||||
syn region math start=/\$\$/ end=/\$\$/
|
||||
" inline math. Look for "$[not $][anything]$"
|
||||
syn match math_block '\$[^$].\{-}\$'
|
||||
|
||||
" Fenced code blocks, used in GitHub Flavored Markdown (GFM)
|
||||
syn region highlight_block start='```' end='```'
|
||||
|
||||
"" Actually highlight those regions.
|
||||
hi link math Statement
|
||||
hi link math_block Function
|
||||
hi link highlight_block Function
|
||||
endfunction
|
||||
|
||||
" Call everytime we open a Markdown file
|
||||
autocmd BufRead,BufNewFile,BufEnter *.md,*.markdown call MathAndLiquid()
|
||||
""" " fix latex highlighting in markdown
|
||||
""" function! MathAndLiquid()
|
||||
""" "" Define certain regions
|
||||
""" " Block math. Look for "$$[anything]$$"
|
||||
""" syn region math start=/\$\$/ end=/\$\$/
|
||||
""" " inline math. Look for "$[not $][anything]$"
|
||||
""" syn match math_block '\$[^$].\{-}\$'
|
||||
"""
|
||||
""" " Fenced code blocks, used in GitHub Flavored Markdown (GFM)
|
||||
""" syn region highlight_block start='```' end='```'
|
||||
"""
|
||||
""" "" Actually highlight those regions.
|
||||
""" hi link math Statement
|
||||
""" hi link math_block Function
|
||||
""" hi link highlight_block Function
|
||||
""" endfunction
|
||||
"""
|
||||
""" " Call everytime we open a Markdown file
|
||||
""" autocmd BufRead,BufNewFile,BufEnter *.md,*.markdown call MathAndLiquid()
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user