Skip to content

Instantly share code, notes, and snippets.

@deluan
Last active June 8, 2019 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deluan/65f8ca4cc71cd5448b5e9e3037ccf11b to your computer and use it in GitHub Desktop.
Save deluan/65f8ca4cc71cd5448b5e9e3037ccf11b to your computer and use it in GitHub Desktop.
My ZSH/Bash custom functions
alias vauth='vault login --method=github'
alias pstree='pstree -g 2'
alias l='ls -lah'
alias la='ls -lAh'
alias ll='ls -lh'
alias ls='ls -G'
alias lsa='ls -lah'
alias grep='grep --color=auto --exclude-dir={.bzr,CVS,.git,.hg,.svn}'
alias ddc='docker-compose'
export GOPATH=$HOME/Development/go
export PATH=$PATH:/usr/local/opt/go/libexec/bin:$GOPATH/bin
export GO15VENDOREXPERIMENT=1
gcd() {
if [ $1 ]; then
PARAM="-q $1"
fi
cd `find $GOPATH/src -type d -not \( -path "*/.git*" -o -path "*/vendor/*" \) | fzf -1 $PARAM`
}
# Gradle Auto-Wraper
gradle() {
if [ -x ./gradlew ]; then
./gradlew $*;
else
command gradle $*
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment