From 9f992fef60ac46645b072d6c7f6fb4224cea9eb9 Mon Sep 17 00:00:00 2001 From: ray Date: Fri, 19 Jun 2020 10:50:54 +0100 Subject: [PATCH] add git-re function --- aliases.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/aliases.sh b/aliases.sh index 765c6c8..0f8e40a 100644 --- a/aliases.sh +++ b/aliases.sh @@ -52,6 +52,12 @@ alias dokku='ssh -t dokku@dokku.isnet.uk' alias pacman='~/.src/archnews/archnews_wrap' +alias npm_real=$(command -v npm) +function npm { + echo "Please use Yarn instead!!" + echo " If you must use npm use: 'npm_real'" +} + # lf gets confused by TERMINFO env var when running in tmux # https://github.com/gokcehan/lf/issues/138#issuecomment-464477665 if [ -n "$TERMINFO" ] ; then @@ -84,8 +90,11 @@ ytdl-ct-audio() { ssh "youtube-dl@192.168.0.118 'screen -m -d ./download.sh --config-location ~/.config/youtube-dl/config-audio-only $1'" } -alias npm_real=$(command -v npm) -function npm { - echo "Please use Yarn instead!!" - echo " If you must use npm use: 'npm_real'" +git-re() { + repo="$1" + dir="$2" + if [ -z "$dir" ] ; then + dir="$repo" + fi + git clone ssh://git@git.rayelliott.dev:3222/rayelliott/"$repo".git "$dir" }