diff options
Diffstat (limited to 'zsh/aliases.zsh')
-rw-r--r-- | zsh/aliases.zsh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh index 16ab231..a673b34 100644 --- a/zsh/aliases.zsh +++ b/zsh/aliases.zsh @@ -7,4 +7,14 @@ alias untar="tar -zxvf " alias py=python3 alias python=python3 alias pip=pip3 -alias dsh="dce sh"
\ No newline at end of file +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 +}
\ No newline at end of file |