Last active
August 11, 2017 09:21
-
-
Save lkmadushan/353155ead9869e050867ac2f5df6dbbd to your computer and use it in GitHub Desktop.
Command aliases
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 ..="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