Created
March 3, 2020 19:32
-
-
Save matheusps/214da415674e02abf1d00ee5d695f5a7 to your computer and use it in GitHub Desktop.
OhmyZSH + Pure
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
| # ----------------------------- | |
| # Generic paths | |
| # ----------------------------- | |
| export PATH=~/.npm-global/bin:$PATH | |
| # ----------------------------- | |
| # Themes | |
| # ----------------------------- | |
| ZSH_THEME="" | |
| autoload -U promptinit; promptinit | |
| prompt pure | |
| # ----------------------------- | |
| # Plugins | |
| # ----------------------------- | |
| plugins=( | |
| git | |
| yarn | |
| osx | |
| zsh-syntax-highlighting | |
| ) | |
| # ----------------------------- | |
| # General aliases | |
| # ----------------------------- | |
| alias zshconfig="code ~/.zshrc" | |
| # ----------------------------- | |
| # Make terminal better | |
| # ----------------------------- | |
| alias cd..='cd ../' # Go back 1 directory level (for fast typers) | |
| alias ..='cd ../' # Go back 1 directory level | |
| alias ...='cd ../../' # Go back 2 directory levels | |
| alias .3='cd ../../../' # Go back 3 directory levels | |
| alias .4='cd ../../../../' # Go back 4 directory levels | |
| alias .5='cd ../../../../../' # Go back 5 directory levels | |
| alias .6='cd ../../../../../../' # Go back 6 directory levels | |
| alias f='open -a Finder ./' # f: Opens current directory in MacOS Finder | |
| alias ~="cd ~" # ~: Go Home | |
| alias c='clear' # c: Clear terminal display | |
| # --------------------------------------- | |
| # Vtex | |
| # --------------------------------------- | |
| vl () { vtex link; } | |
| vl--u () { vtex link --unsafe; } | |
| vu () { vtex use "$1"; } | |
| vw--l () { vtex workspace ls; } | |
| vw--n () { vtex workspace new "$1"; } | |
| vw--d () { vtex workspace delete "$1"; } | |
| vw--r () { vtex workspace reset; } | |
| vd () { vtex deploy "$1"; } | |
| vdu () { vtex deps update; } | |
| export GITHUB_API_TOKEN="HAHAHA 😏" | |
| alias patch='releasy --stable --notes' | |
| alias minor='releasy minor --stable --notes' | |
| alias major='releasy major --stable --notes' | |
| alias pre='releasy pre' | |
| alias stgclean='git clean -fdx' | |
| # --------------------------------------- | |
| # Functions | |
| # --------------------------------------- | |
| # Enable VSCode | |
| function code { | |
| if [[ $# = 0 ]] | |
| then | |
| open -a "Visual Studio Code" | |
| else | |
| local argPath="$1" | |
| [[ $1 = /* ]] && argPath="$1" || argPath="$PWD/${1#./}" | |
| open -a "Visual Studio Code" "$argPath" | |
| fi | |
| } | |
| # ----------------------------- | |
| # Zsh export - ALWAYS @ THE END! | |
| # ----------------------------- | |
| export ZSH="/Users/matheusps/.oh-my-zsh" | |
| source $ZSH/oh-my-zsh.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment