aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/zsh/aliases.zsh
blob: a673b3451e261c6fc2784cb4ecce706b00867c1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Aliases
alias zshrc="${=EDITOR} ~/.zshrc"
alias update="sudo apt update && apt list --upgradable"
alias upgrade="sudo apt upgrade -y"
alias ipa="ip -s -c -h a"
alias untar="tar -zxvf "
alias py=python3
alias python=python3
alias pip=pip3
alias dsh="dce sh"
alias clone=github-clone 


function github-clone() {
    if [[ "$1" != *"/"* ]]; then
        1="$(git config user.username)/$1"
    fi

    git clone git@github.com:$1.git
}