From 661c1b4096b4f192fbf543d8ab497791448fc8d3 Mon Sep 17 00:00:00 2001 From: "Luis C." Date: Tue, 28 May 2024 01:23:39 -0400 Subject: [PATCH] adding zprofile --- .gitconfig | 5 +++++ .zprofile | 31 +++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 .gitconfig create mode 100644 .zprofile 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} "$@" +}