Skip to content

Instantly share code, notes, and snippets.

@hugoestr
Created May 13, 2020 13:55
Show Gist options
  • Save hugoestr/540b88f86a0a431b617e6263f10ee89f to your computer and use it in GitHub Desktop.
Save hugoestr/540b88f86a0a431b617e6263f10ee89f to your computer and use it in GitHub Desktop.
function acktung() {
ack --ignore-dir={.bundle,log,dev,lib,vendor} $1 .
}
function ackount() {
ack -hc --ignore-dir={.bundle,log,dev,lib,vendor} $1 .
}
function ackls {
ack -l --ignore-dir={.bundle,log,dev,lib,vendor} $1 .
}
alias help="grep alias ~/.zshrc"
alias vars="grep '^[a-z]*=' ~/.zshrc"
# alias to start vim with nerdtree
alias ide="vim -c NERDTree"
# use vim bindings
set -o vi
# pretty ls
export LSCOLORS=GxFxCxDxBxegedabagaced
export CLICOLOR=1
# pretty grep
export GREP_OPTIONS='--color=auto'
# Make the prompt a different color
# This is amber
export PS1=$'%F{226}%1 %1/ %#%f '
# set vimdiff as a merge tool
export THOR_MERGE=vimdiff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment