Last active
May 3, 2024 18:31
-
-
Save eduardoborges/9f21baa3acb6a988b5c9711c4d0c5190 to your computer and use it in GitHub Desktop.
This file contains 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
# My Favorite Shell | |
eval "$(starship init zsh)" | |
# Shell Plugins | |
export ZPLUG_HOME=/opt/homebrew/opt/zplug | |
source $ZPLUG_HOME/init.zsh | |
if ! command -v zplug > /dev/null 2>&1; then | |
echo 'Installing zplug...' | |
brew install zplug | |
export ZPLUG_HOME=/opt/homebrew/opt/zplug | |
source $ZPLUG_HOME/init.zsh | |
fi | |
zplug "tcnksm/docker-alias", use:zshrc | |
zplug "plugins/git", from:oh-my-zsh | |
zplug "zdharma-continuum/fast-syntax-highlighting" | |
zplug "zsh-users/zsh-autosuggestions" | |
zplug "remcohaszing/zsh-node-bin" | |
if ! zplug check; then | |
zplug install | |
fi | |
zplug load | |
# My aliases | |
alias p="cd ~/Projects" | |
alias g="git" | |
alias gs="git status" | |
alias ga="git add" | |
alias gcm="git commit -m" | |
alias gca="git commit -am" | |
alias gco="git checkout" | |
alias gpl="git pull" | |
alias gpu="git push" | |
alias gbr="git branch" | |
alias gcl="git clone" | |
alias c="clear" | |
alias l="ls -la" | |
alias ll="ls -l" | |
alias la="ls -A" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias v="nvim" | |
alias code="code-insiders" | |
alias k="kubectl" | |
alias kx="kubectl exec -it" | |
alias d="docker" | |
alias dc="docker-compose" | |
alias h="http-server" | |
alias n="npm" | |
alias nr="npm run" | |
alias pn="pnpm" | |
alias pnr="pnpm run" | |
alias b="brew" | |
alias bi="brew install" | |
alias bu="brew update" | |
alias "??"=plz | |
# Plz-CLI | |
if ! command -v plz > /dev/null 2>&1; then | |
echo 'Installing plz...' | |
brew install plz-cli | |
fi | |
# My functions | |
function f() { find . -iname "*$1*" ${@:2} } | |
function r() { grep "$1" ${@:2} -R . } | |
function size() { du -sh "$1" | awk '{print $1}' } | |
function cleanGit() { git clean -Xdf } | |
# Android ENV | |
export ANDROID_HOME=$HOME/Library/Android/sdk | |
export PATH=$PATH:$ANDROID_HOME/emulator | |
export PATH=$PATH:$ANDROID_HOME/tools | |
export PATH=$PATH:$ANDROID_HOME/tools/bin | |
export PATH=$PATH:$ANDROID_HOME/platform-tools | |
# Extra | |
export PATH="$PATH:$HOME/.bin" | |
# My Keys | |
export OPENAI_TOKEN="--" | |
export GH_TOKEN="--" | |
# Keys Alias | |
export OPENAI_API_KEY=$OPENAI_TOKEN |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment