Last active
January 2, 2020 09:24
-
-
Save kunicmarko20/8bfec381e220b6a9b3ffaf921b38f6c1 to your computer and use it in GitHub Desktop.
.zshrc
This file contains hidden or 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
| # Startup | |
| docker system prune -fa --filter "until=96h" | |
| # Aliases | |
| alias www="cd ~/www && clear" | |
| alias c="clear" | |
| alias isdockerbad="docker network ls && docker container ls" | |
| alias baddocker="echo y | docker network prune && docker kill $(docker ps -q)" | |
| alias killdocker="docker volume rm $(docker volume ls -qf dangling=true) && docker rmi $(docker images -q)" | |
| alias open="xdg-open" | |
| alias cat="bat" | |
| alias ls="exa" | |
| alias gpn="git push -u origin HEAD" | |
| alias gpf='git push --force-with-lease' | |
| alias gct=gct | |
| function gct() { | |
| if [ -z "$1" ] | |
| then | |
| echo "Ticket number missing"; | |
| exit 1; | |
| fi | |
| re='^[0-9]+$' | |
| if ! [[ "$1" =~ $re ]] ; then | |
| echo "First argument should be a number of the ticket"; exit 1 | |
| fi | |
| if [ -z "$2" ] | |
| then | |
| echo "Short description missing"; | |
| exit 1; | |
| fi | |
| git checkout -b ticket/PROJECT-$1-$2 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment