Create a gist now

Instantly share code, notes, and snippets.

My .zshrc file
# start_time="$(date +%s)"
# Antigen — A zsh plugin manager
export ANTIGEN_DEFAULT_REPO_URL=https://github.com/sharat87/oh-my-zsh.git
source ~/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
# Bundles from the default repo declared above.
antigen bundles <<EOBUNDLES
lein
pip
gradle
brew
gem
npm
sublime
python
# Guess what to install when running an unknown command.
command-not-found
# The heroku tool helper plugin.
heroku
# Helper for extracting different types of archives.
extract
# Help working with version control systems.
svn
git
# nicoulaj's moar completion files for zsh
zsh-users/zsh-completions src
# Syntax highlighting bundle.
zsh-users/zsh-syntax-highlighting
# ZSH port of Fish shell's history search feature.
zsh-users/zsh-history-substring-search
# Autocomplete
tarruda/zsh-autosuggestions
EOBUNDLES
# Tracks your most used directories, based on 'frecency'. And its accompanying
# setup code.
antigen bundle rupa/z
add-zsh-hook precmd _z_precmd
function _z_precmd {
_z --add "$PWD"
}
# Setup suggestions
zle-line-init() {
zle autosuggest-start
}
zle -N zle-line-init
# bind UP and DOWN arrow keys
zmodload zsh/terminfo
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
# Load the prompt theme.
# antigen theme prose
antigen theme sjl/oh-my-zsh themes/prose
# Tell Antigen that we're done.
antigen apply
# Automatically list directory contents on `cd`.
auto-ls () { ls; }
chpwd_functions=( auto-ls $chpwd_functions )
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
@CLaBruno

I like your setup and I copied your .zshrc file and added it to mine but now when I open my terminal I get the following error:

grep: warning: GREP_OPTIONS is deprecated; please use an alias or script

Any idea how to fix this?

@Treggats

You can find the deprecated line and replace GREP_OPTIONS with an alias like

  alias grep='grep $GREP_OPTIONS'
@aurbano
Owner
aurbano commented Dec 28, 2014

Exactly, I removed my aliases and functions from the profile file, but for completeness I'm using the following:

# Some interesting funtions
cdf() {
    target=`osascript -e 'tell application "Finder" to if (count of Finder windows) > 0 then get POSIX path of (target of front Finder window as text)'`
    if [ "$target" != "" ]; then
        cd "$target"; pwd
    else
        echo 'No Finder window found' >&2
    fi
}
man() {
    env \
    LESS_TERMCAP_mb=$(printf "\e[1;31m") \
    LESS_TERMCAP_md=$(printf "\e[1;31m") \
    LESS_TERMCAP_me=$(printf "\e[0m") \
    LESS_TERMCAP_se=$(printf "\e[0m") \
    LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
    LESS_TERMCAP_ue=$(printf "\e[0m") \
    LESS_TERMCAP_us=$(printf "\e[1;32m") \
    man "$@"
}
serve() {
    python -m SimpleHTTPServer ${1:-8080}
}
pman () {
    man -t "${1}" | open -f -a /Applications/Preview.app
}
git_undo(){
  git reset --soft HEAD~1
}


# Define cool aliases
alias ls="ls -G" # list
alias la="ls -Ga" # list all, includes dot files
alias ll="ls -Gl" # long list, excludes dot files
alias lla="ls -Gla" # long list all, includes dot files
alias speedtest="curl -o /dev/null http://speedtest.wdc01.softlayer.com/downloads/test10.zip"
alias mute="osascript -e 'set volume output muted true'"
alias loud="sudo osascript -e 'set volume 10'"

# Get readable list of network IPs
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
alias flush="dscacheutil -flushcache" # Flush DNS cache

alias gzip="gzip -9n" # set strongest compression level as ‘default’ for gzip
alias ping="ping -c 5" # ping 5 times ‘by default’
alias ql="qlmanage -p 2>/dev/null" # preview a file using QuickLook 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment