Skip to content

Instantly share code, notes, and snippets.

@jaksonmoura
Last active December 29, 2019 13:21
Show Gist options
  • Select an option

  • Save jaksonmoura/25736fde283d97567526 to your computer and use it in GitHub Desktop.

Select an option

Save jaksonmoura/25736fde283d97567526 to your computer and use it in GitHub Desktop.
My zshrc config file
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases
alias zshconf="subl ~/.zshrc"
alias ohmyzsh="subl ~/.oh-my-zsh"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails3 ruby osx github git textmate ruby lighthouse)
plugins=(git zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# User configuration
export PATH="/Library/PostgreSQL/9.5/bin/psql:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/bin:/usr/local/php5/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin:/opt/local/bin:/usr/local/opt/sqlite/bin"
# export PATH = /Library/PostgreSQL/9.5/bin/psql:$PATH
# export MANPATH="/usr/local/man:$MANPATH"
# # Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
export LC_CTYPE=en_US.UTF-8
#MySQL
MYSQL=/usr/local/mysql/bin
export PATH=$PATH:$MYSQL
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
[[ -s ~/.autojump/etc/profile.d/autojump.sh ]] && . ~/.autojump/etc/profile.d/autojump.sh
# Sass
alias scss='sass --watch'
alias scssc='sass --watch $1 --style compressed'
alias sassc='node-sass -rw $1 -o $1 --output-style compressed'
# MySQL
alias mysql=/usr/local/mysql/bin/mysql
alias mysqladmin=/usr/local/mysql/bin/mysqladmin
# PostgreSQL
alias pg-log="pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log"
alias pg="pg_ctl -D /usr/local/var/postgres"
# Git
alias ga='git add'
alias gco='git checkout'
alias gc='git commit -m'
alias gb='git branch'
alias gba='git branch -a'
alias gd='git diff'
alias gl='git log'
alias gpl='git pull'
alias gp='git push'
alias gpm='git push origin master'
alias gst='git status'
alias gw='git whatchanged'
alias gr='git rebase'
alias grm='git rm'
alias greset='git reset --hard HEAD~1'
alias gundo='git push origin HEAD --force' #Undo last commit
alias gignoredb='echo database.yml >> config/.gitignore'
# Projects path
alias myprojects="cd ~/Projetos"
alias mydesigns="cd ~/Design"
alias railssass="ttab 'rails s; ttab scss .'"
alias runserver="python -m SimpleHTTPServer 8000"
alias youtube="youtube-dl -o '%(playlist)s/%(playlist_index)s - %(title)s.%(ext)s'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment