add git-re function
This commit is contained in:
parent
1e653af462
commit
9f992fef60
17
aliases.sh
17
aliases.sh
|
@ -52,6 +52,12 @@ alias dokku='ssh -t dokku@dokku.isnet.uk'
|
||||||
|
|
||||||
alias pacman='~/.src/archnews/archnews_wrap'
|
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
|
# lf gets confused by TERMINFO env var when running in tmux
|
||||||
# https://github.com/gokcehan/lf/issues/138#issuecomment-464477665
|
# https://github.com/gokcehan/lf/issues/138#issuecomment-464477665
|
||||||
if [ -n "$TERMINFO" ] ; then
|
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'"
|
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)
|
git-re() {
|
||||||
function npm {
|
repo="$1"
|
||||||
echo "Please use Yarn instead!!"
|
dir="$2"
|
||||||
echo " If you must use npm use: 'npm_real'"
|
if [ -z "$dir" ] ; then
|
||||||
|
dir="$repo"
|
||||||
|
fi
|
||||||
|
git clone ssh://git@git.rayelliott.dev:3222/rayelliott/"$repo".git "$dir"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue