Skip to content

Instantly share code, notes, and snippets.

@lkmadushan
Last active August 11, 2017 09:21
Show Gist options
  • Save lkmadushan/353155ead9869e050867ac2f5df6dbbd to your computer and use it in GitHub Desktop.
Save lkmadushan/353155ead9869e050867ac2f5df6dbbd to your computer and use it in GitHub Desktop.
Command aliases
alias ..="cd .."
alias ...="cd ../.."
alias h="cd ~"
alias c="clear"
function ubuntu() {
docker run -it --rm -v $(pwd):/opt -w /opt ubuntu:16.04 "$@"
}
function alpine() {
docker run -it --rm -v $(pwd):/opt -w /opt alpine:edge "$@"
}
function npm() {
docker run -it --rm -v $(pwd):/opt -w /opt node:alpine npm "$@"
}
function composer() {
docker run --rm -v $(pwd):/app -v ~/.ssh:/root/.ssh composer/composer:alpine "$@"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment