diff --git a/.gitconfig b/.gitconfig new file mode 100644 index 0000000..a8d2614 --- /dev/null +++ b/.gitconfig @@ -0,0 +1,5 @@ +[user] + email = me@lucataco.com + name = Luis C +[core] + editor = vim diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..65e9a99 --- /dev/null +++ b/.zprofile @@ -0,0 +1,31 @@ +# 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} "$@" +}