Skip to content

Instantly share code, notes, and snippets.

@jeckel jeckel/aliases.sh
Last active Mar 31, 2017

Embed
What would you like to do?
aliases
#!/bin/bash
#########################################################
# docker
# Stop all running container
alias dstopall="if [ \$(docker ps -q | wc -l) -gt 0 ] ; then docker stop \$(docker ps -q); fi"
# Remove all container's instance
alias drmall="if [ \$(docker ps -aq | wc -l) -gt 0 ] ; then docker rm \$(docker ps -aq); fi"
# Remove all untagged / unfinished images
alias drminone="if [ \$(docker images -q --filter dangling=true | wc -l) -gt 0 ] ; then ; docker rmi -f \$(docker images -q --filter dangling=true) ; fi"
#########################################################
# Git
# git merge testing into master
alias gmtm="git checkout master && git pull && git merge origin/testing && git push"
#########################################################
# System
# upgrade system
alias upg="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y"
# WebApp tools
alias syncthing-ui="chromium-browser --user-data-dir=\$HOME/.config/syncthing-ui --incognito --app=http://127.0.0.1:8384/ &"
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.