Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Shell alias
alias ez="vim ~/.zshrc && source ~/.zshrc"
alias c="clear"
alias path='echo -e ${PATH//:/\\n}'
alias dpsa="docker ps -a"
alias dcup="docker-compose up"
alias dcupd="docker-compose up -d"
alias dcdn="docker-compose down"
alias dclf="docker-compose logs -f"
alias server="python3 -m http.server"
alias gclean="git branch --merged | xargs git branch -d "
alias mb="docker run -it --rm -v "$PWD":/usr/src/mymaven -v "$HOME/.m2":/root/.m2 -w /usr/src/mymaven maven mvn clean package"
alias today="date -u +\"%Y.%m.%d\""
alias sha="git rev-parse --short HEAD"
alias release="git tag -a $(date -u +\"%Y.%m.%d\")-$(git rev-parse --short HEAD) -m"
function watchcurl() {
while true;
do curl -s -o /dev/null -w "%{http_code}" @1;
echo '';
sleep 1;
done;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.