Created
June 10, 2015 07:48
-
-
Save am-kantox/4a062f21064cd1e6ae36 to your computer and use it in GitHub Desktop.
zsh aliases
This file contains 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
export TERM=xterm-256color | |
# Less Colors for Man Pages | |
export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking | |
export LESS_TERMCAP_md=$'\E[01;38;5;74m' # begin bold | |
export LESS_TERMCAP_me=$'\E[0m' # end mode | |
export LESS_TERMCAP_se=$'\E[0m' # end standout-mode | |
export LESS_TERMCAP_so=$'\E[38;5;246m' # begin standout-mode - info box | |
export LESS_TERMCAP_ue=$'\E[0m' # end underline | |
export LESS_TERMCAP_us=$'\E[04;38;5;146m' # begin underline | |
export LESS=-R | |
export LESSOPEN='|pygmentize -g %s' | |
alias ggl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias ggd="git diff --stat --color" | |
export GOPATH=/opt/gocode | |
export GRADLE_HOME=/opt/am/gradle | |
export PATH=/home/am/Proyectos/Others/go/bin:$GOPATH/bin:$GRADLE_HOME/bin:/opt/phantomjs/bin:$PATH | |
function join { local IFS="$1"; shift; echo "$*"; } | |
grrr() { | |
if [ -z $1 ] | |
then | |
echo "And what do you expect me to grep, you slowpoke?" | |
else | |
local DIRS=$(find . -maxdepth 1 -type d | grep -v '^\.\($\|\/spec\|\/log\|\/sublime\|\/ubuntu\|\/\.\)' | cut -d '/' -f 2) | |
grep -r $@ $(for i in $DIRS ; do echo $i/**/*.rb ; done) | |
fi | |
} | |
grrrs() { | |
if [ -z $1 ] | |
then | |
echo "And what do you expect me to grep, you slowpoke?" | |
else | |
grep -r $@ **/*.rb | |
fi | |
} | |
grri() { | |
grrr -i $@ | |
} | |
git_last() { | |
if [ -z $1 ] ; then | |
COUNT=1 | |
else | |
COUNT=$1 | |
fi | |
for lgt in `git log -100 --pretty=%h` ; do | |
for candidate in `git diff-tree --no-commit-id --name-only -r $lgt | grep '^r\{0,1\}spec/'` ; do | |
echo $candidate | |
done | |
done | head -$COUNT | |
} |
This file contains 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
autoload -Uz promptinit | |
promptinit | |
prompt mudasobwa |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment