My Brain

ZSH Config

  • .zshrc
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
  source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi

# EXPORTS
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/Guille/.oh-my-zsh"
export PATH="/usr/local/sbin:$PATH"
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export PIPENV_VENV_IN_PROJECT="enabled"
export PATH="/usr/local/opt/sphinx-doc/bin:$PATH"

# THEME
ZSH_THEME="powerlevel10k/powerlevel10k"

# Uncomment the following line to automatically update without prompting.
DISABLE_UPDATE_PROMPT="true"


ZLE_RPROMPT_INDENT=0

# PLUGINS
plugins=(
zsh-nvm
git
iterm2
man
zsh-autosuggestions
dirhistory
zsh-navigation-tools
magic-enter
zsh-interactive-cd
colorize
heroku
pip
thefuck
)

source $ZSH/oh-my-zsh.sh

# User configuration

test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"

# ALIASES
alias cat="pygmentize -g"
alias frun="FLASK_APP=app.py FLASK_ENV=development flask run"
alias venv="python3 -m venv ./.venv"
alias activate="source ./.venv/bin/activate"
alias zshconfig="code ~/.zshrc"
alias loadzsh="source ~/.zshrc"
alias updatebrew="brew update;brew upgrade;brew update;brew upgrade"
alias tree="tree -C"
alias grep="grep --colour=auto"
alias djapp="python3 manage.py runserver"
alias tests="docker-compose run --rm app sh -c 'python manage.py test && flake8'"
alias makemigrationsplan="python manage.py makemigrations --dry-run"
alias makemigrations="python manage.py makemigrations"
alias migrateplan="python manage.py migrate --plan"
alias migrate="python manage.py migrate"
alias collectstatic="python manage.py collectstatic"
alias createsuperuser="python manage.py createsuperuser"
alias editp10k="code ~/.p10k.zsh"
alias codeclean="code --user-data-dir=/Users/Guille/.vscode-profiles/sample/data --extensions-dir=/Users/Guille/.vscode-profiles/sample/extensions"
alias codereact="code --user-data-dir=/Users/Guille/.vscode-profiles/react/data --extensions-dir=/Users/Guille/.vscode-profiles/react/extensions"
alias pip="pip3"
alias python="python3"
alias react=". react"

# Created by `userpath` on 2020-11-23 22:33:55
# export PATH="$PATH:/Users/Guille/.local/bin"

# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh

export PATH="$HOME/.poetry/bin:$PATH"