Last active
February 5, 2021 14:02
-
-
Save mauriciomutte/08491fa9603e52503b5d05d6786debb3 to your computer and use it in GitHub Desktop.
ohmyzsh-config
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
# 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="/home/mauriciomutte/.oh-my-zsh" | |
ZSH_THEME="spaceship" | |
plugins=(git) | |
source $ZSH/oh-my-zsh.sh | |
# ----- aliases ----- | |
alias zshconfig="code ~/.zshrc" | |
alias ohmyzsh="code ~/.oh-my-zsh" | |
alias yd="yarn dev" | |
alias yb="yarn build" | |
alias ys="yarn start" | |
alias yw="yarn watch" | |
alias hml="tim && gco homolog" | |
alias tim="cd && cd repo && cd tim" | |
alias timUp="hml && utils && yb && t-components && yb " | |
alias corp="tim && cd packages/site-corp" | |
alias consumer="tim && cd packages/site-consumer" | |
alias merchan="tim && cd packages/site-merchan" | |
alias cms="tim && cd packages/cms" | |
alias t-apicorp="tim && cd packages/api-corp" | |
alias t-utils="tim && cd packages/utils" | |
alias t-components="tim && cd packages/components" | |
alias timUp="hml && g pull --rebase && lerna bootstrap && timb && tim" | |
alias timb="tim && t-utils && yb && t-components && yb" | |
alias timbUtils="t-utils && yb" | |
alias timbBack="timbUtils && cms && yb" | |
alias timApiCorp="timbBack && t-apicorp && yd" | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
SPACESHIP_PROMPT_ORDER=( | |
user # Username section | |
dir # Current directory section | |
host # Hostname section | |
git # Git section (git_branch + git_status) | |
hg # Mercurial section (hg_branch + hg_status) | |
exec_time # Execution time | |
line_sep # Line break | |
vi_mode # Vi-mode indicator | |
jobs # Background jobs indicator | |
exit_code # Exit code section | |
char # Prompt character | |
) | |
SPACESHIP_USER_SHOW=always | |
SPACESHIP_PROMPT_ADD_NEWLINE=false | |
SPACESHIP_CHAR_SUFFIX=" " | |
SPACESHIP_PROMPT_SEPARATE_LINE=false | |
### Added by Zinit's installer | |
if [[ ! -f $HOME/.zinit/bin/zinit.zsh ]]; then | |
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.zinit" && command chmod g-rwX "$HOME/.zinit" | |
command git clone https://github.com/zdharma/zinit "$HOME/.zinit/bin" && \ | |
print -P "%F{33}▓▒░ %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160}▓▒░ The clone has failed.%f%b" | |
fi | |
source "$HOME/.zinit/bin/zinit.zsh" | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
# Load a few important annexes, without Turbo | |
# (this is currently required for annexes) | |
zinit light-mode for \ | |
zinit-zsh/z-a-rust \ | |
zinit-zsh/z-a-as-monitor \ | |
zinit-zsh/z-a-patch-dl \ | |
zinit-zsh/z-a-bin-gem-node | |
zinit light zdharma/fast-syntax-highlighting | |
zinit light zsh-users/zsh-autosuggestions | |
zinit light zsh-users/zsh-completions | |
### End of Zinit's installer chunk |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment