Last active
January 7, 2019 17:29
-
-
Save Tucker-Eric/3583dea09c9d51a3986f5c5453d74ca9 to your computer and use it in GitHub Desktop.
dotfiles
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 ll="ls -al" | |
alias c="clear" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias ....="cd ../../.." | |
alias ~="cd ~" | |
if [ -f ~/.docker_aliases ]; then | |
. ~/.docker_aliases | |
fi | |
if [ -f ~/.git_aliases ]; then | |
. ~/.git_aliases | |
fi |
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 dkps="docker ps --format 'table {{.ID}}\t{{.Names}}\t{{.Status}}\t{{.Image}}'" | |
alias dk='docker' | |
alias dkl='docker logs' | |
alias dki='docker images' | |
alias dksd='docker stack deploy' | |
dkln() { | |
docker logs -f `docker ps | grep $1 | awk '{print $1}'` | |
} | |
dkstats() { | |
if [ $# -eq 0 ] | |
then docker stats --no-stream; | |
else docker stats --no-stream | grep $1; | |
fi | |
} | |
dktop() { | |
docker stats --format "table {{.Container}}\t{{.Name}}\t{{.CPUPerc}} {{.MemPerc}}\t{{.NetIO}}\t{{.BlockIO}}" | |
} | |
dksh() { | |
docker exec -it `docker ps | grep $1 | awk '{print $1}' | head -1` /bin/sh | |
} | |
dke() { | |
docker exec `docker ps | grep $1 | awk '{print $1}'` $2 | |
} | |
dksr() { | |
docker stack rm $1 | |
} | |
dkin() { | |
docker inspect `docker images | grep $1 | awk '{print $3}' | head -1` | |
} |
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 gst="git status" | |
alias gc="git commit" | |
alias gco="git checkout" | |
alias gb="git branch" | |
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an>%Creset' --abbrev-commit --date=relative --all" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment