Skip to content

Instantly share code, notes, and snippets.

@bestickley
Last active August 25, 2023 17:58
Show Gist options
  • Save bestickley/f9651a5a16afd34c1d27bcccb76bb273 to your computer and use it in GitHub Desktop.
Save bestickley/f9651a5a16afd34c1d27bcccb76bb273 to your computer and use it in GitHub Desktop.
zsh Config
# Path to your oh-my-zsh installation.
export ZSH="/Users/stickb/.oh-my-zsh"
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
source $ZSH/oh-my-zsh.sh
# User configuration
# direnv https://direnv.net/
eval "$(direnv hook zsh)"
# PyEnv Config
eval "$(pyenv init --path)"
eval "$(pyenv init -)"
# jenv Config
# export PATH="$HOME/.jenv/bin:$PATH"
# eval "$(jenv init -)"
# pnpm
export PNPM_HOME="/Users/stickb/Library/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# Add python user site-packages binary directory to PATH https://pipenv.pypa.io/en/latest/installation/#preferred-installation-of-pipenv
export PATH="$PATH:/Users/stickb/.local/bin"
### MANAGED BY RANCHER DESKTOP START (DO NOT EDIT)
export PATH="/Users/stickb/.rd/bin:$PATH"
### MANAGED BY RANCHER DESKTOP END (DO NOT EDIT)
# Aliases
# dcnm = Delete Child node_modules
alias dcnm='find . -name "node_modules" -type d -prune -exec rm -rf "{}" +'
# uac = Update AWS Credentials; assumes you have AWS profile and credential environment variables already set
alias uac='(
aws configure set aws_access_key_id "$AWS_ACCESS_KEY_ID" --profile "$AWS_PROFILE"
aws configure set aws_secret_access_key "$AWS_SECRET_ACCESS_KEY" --profile "$AWS_PROFILE"
aws configure set aws_session_token "$AWS_SESSION_TOKEN" --profile "$AWS_PROFILE"
echo "AWS Credentials Updated ✅"
)'
# Always Warpify Subshell
printf '\eP$f{"hook": "SourcedRcFileForWarp", "value": { "shell": "zsh" }}\x9c'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment