From 5f43f7078d4a486db9f32aa7a0f2489422053d0c Mon Sep 17 00:00:00 2001 From: csimonis Date: Wed, 7 Aug 2024 08:41:40 +0200 Subject: [PATCH] initial commit --- alias.sh | 5 +++++ all.sh | 9 +++++++++ composer.sh | 5 +++++ db.sh | 6 ++++++ ddev.sh | 6 ++++++ git.sh | 14 ++++++++++++++ list.sh | 6 ++++++ misc.sh | 4 ++++ 8 files changed, 55 insertions(+) create mode 100644 alias.sh create mode 100644 all.sh create mode 100644 composer.sh create mode 100644 db.sh create mode 100644 ddev.sh create mode 100644 git.sh create mode 100644 list.sh create mode 100644 misc.sh diff --git a/alias.sh b/alias.sh new file mode 100644 index 0000000..0633f8e --- /dev/null +++ b/alias.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +alias c='clear' +alias apt='sudo apt' +alias apt-get='sudo apt-get' \ No newline at end of file diff --git a/all.sh b/all.sh new file mode 100644 index 0000000..993f944 --- /dev/null +++ b/all.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +source <(curl -s https://cdn.simonis.lol/alias.sh) +source <(curl -s https://cdn.simonis.lol/ddev.sh) +source <(curl -s https://cdn.simonis.lol/list.sh) +source <(curl -s https://cdn.simonis.lol/composer.sh) +source <(curl -s https://cdn.simonis.lol/git.sh) +source <(curl -s https://cdn.simonis.lol/db.sh) +source <(curl -s https://cdn.simonis.lol/misc.sh) \ No newline at end of file diff --git a/composer.sh b/composer.sh new file mode 100644 index 0000000..c46a96d --- /dev/null +++ b/composer.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +alias cr='composer require' +alias ci='composer install' +alias cu='composer update' \ No newline at end of file diff --git a/db.sh b/db.sh new file mode 100644 index 0000000..f7d15d4 --- /dev/null +++ b/db.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +alias schema='php bin/console doctrine:schema:update --force' +alias migr='php bin/console doctrine:fixtures:load --no-interaction' +alias drop='php bin/console doctrine:database:drop --force' +alias create='php bin/console doctrine:database:create' \ No newline at end of file diff --git a/ddev.sh b/ddev.sh new file mode 100644 index 0000000..1e0de5a --- /dev/null +++ b/ddev.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +alias console='ddev exec php bin/console' +alias composer='ddev exec composer' +alias npm='ddev exec npm' +alias php='ddev exec php' \ No newline at end of file diff --git a/git.sh b/git.sh new file mode 100644 index 0000000..691b560 --- /dev/null +++ b/git.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +alias ga='git add' +alias gaa='git add .' +alias gc='git commit' +alias gp='git push' +alias gpf='git push --force' +alias gpu='git pull' +alias gl='git log' +alias gb='git branch' +alias gr='git restore' +alias gra='git restore .' +alias gs='git status' +alias gch='git checkout' \ No newline at end of file diff --git a/list.sh b/list.sh new file mode 100644 index 0000000..1535ff6 --- /dev/null +++ b/list.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +alias ls='ls | lolcat' +alias lsa='bash -c "ls -a | lolcat"' +alias lsl='bash -c "ls -l | lolcat"' +alias lsal='bash -c "ls -al | lolcat"' diff --git a/misc.sh b/misc.sh new file mode 100644 index 0000000..cb9f0fe --- /dev/null +++ b/misc.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +alias test='php bin/phpunit' +alias cover='php bin/phpunit --coverage-html=html-coverage' \ No newline at end of file