#!/bin/bash

cleanbranches(){
	git fetch -p && for branch in $(git for-each-ref --format '%(refname) %(upstream:track)' refs/heads | awk '$2 == "[gone]" {sub("refs/heads/", "", $1); print $1}' ) ; do git branch -D $branch ; done
}

alias ll="ls -la"

alias k="kubectl"
alias gut="cleanbranches"
alias fucking="sudo"
alias pat="cat ~/.bak/PAT"
alias clip="wl-copy"

if [ "$PS1" ]; then
    alias grep="grep --color=auto"
    alias ls="ls --color=auto"
    alias ll="ls -la --color=auto"
fi