You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
918 B
Bash
32 lines
918 B
Bash
# Git Aliases
|
|
alias ga='git add'
|
|
alias gaa='git add .'
|
|
alias gc='git commit'
|
|
alias gcm='git commit -m'
|
|
alias gd='git diff'
|
|
alias gi='git init'
|
|
alias gl='git log'
|
|
alias gp='git pull'
|
|
alias gpsh='git push'
|
|
alias gss='git status -s'
|
|
alias gs='echo ""; echo "***"; echo -e " DONT FORGET TO PULL BEFORE COMMITTING"; echo "***"; echo ""; git status'
|
|
|
|
|
|
# Docker Aliases
|
|
alias doc='docker'
|
|
alias dps='docker ps'
|
|
alias dpsa='docker ps -a'
|
|
alias dlsi='docker images'
|
|
alias drmi='docker rmi'
|
|
alias drmc='docker container rm'
|
|
alias docshell="docker run --rm -i -t --entrypoint=/bin/bash"
|
|
alias docshellsh="docker run --rm -i -t --entrypoint=/bin/sh"
|
|
function docshellhere() {
|
|
dirname=${PWD##*/}
|
|
docker run --rm -it --entrypoint=/bin/bash -v `pwd`:/${dirname} -w /${dirname} "$@"
|
|
}
|
|
function docshellshhere() {
|
|
dirname=${PWD##*/}
|
|
docker run --rm -it --entrypoint=/bin/sh -v `pwd`:/${dirname} -w /${dirname} "$@"
|
|
}
|