Last active
June 8, 2019 16:15
-
-
Save deluan/65f8ca4cc71cd5448b5e9e3037ccf11b to your computer and use it in GitHub Desktop.
My ZSH/Bash custom functions
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
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' |
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 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` | |
} |
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
# 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