Last active
September 13, 2023 09:15
-
-
Save hdodov/2f42cd113e4e7108e67541f2f4afeb0d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enable git autocompletions | |
autoload -Uz compinit && compinit | |
# Change terminal prompt to "$directory ($branch)" | |
autoload -Uz vcs_info | |
zstyle ':vcs_info:git:*' formats ' (%b)' | |
precmd () { vcs_info } | |
setopt prompt_subst | |
PS1='%F{yellow}%1~%f%F{cyan}$vcs_info_msg_0_%f $ ' | |
# Enable AWS completions | |
# https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-completion.html | |
autoload bashcompinit && bashcompinit | |
complete -C '/usr/local/bin/aws_completer' aws | |
# Quick directory listing with just writing `ll` | |
alias ll='ls -al' | |
alias composer='docker run --rm --interactive --tty --volume $PWD:/app composer' | |
export SSH_AUTH_SOCK=~/Library/Group\ Containers/2BUA8C4S2C.com.1password/t/agent.sock | |
# Stuff from https://volta.sh | |
export VOLTA_HOME="$HOME/.volta" | |
export PATH="$VOLTA_HOME/bin:$PATH" | |
# Okta AWS | |
if [[ -f "$HOME/.okta/bash_functions" ]]; then | |
. "$HOME/.okta/bash_functions" | |
fi | |
if [[ -d "$HOME/.okta/bin" && ":$PATH:" != *":$HOME/.okta/bin:"* ]]; then | |
PATH="$HOME/.okta/bin:$PATH" | |
fi | |
alias okta-login='okta-aws default sts get-caller-identity' | |
# bun completions | |
[ -s "/Users/hristiyan.dodov/.bun/_bun" ] && source "/Users/hristiyan.dodov/.bun/_bun" | |
# bun | |
export BUN_INSTALL="$HOME/.bun" | |
export PATH="$BUN_INSTALL/bin:$PATH" | |
# IP shortcuts | |
alias internal-ip="ifconfig en0 inet | grep -o 'inet [0-9.]*' | cut -d ' ' -f 2" | |
alias public-ip="curl checkip.amazonaws.com" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment