minor refactor

This commit is contained in:
constantin 2024-09-04 15:46:04 +02:00
parent bb266e3094
commit 0f0fe951ee
8 changed files with 5 additions and 19 deletions

View File

@ -1,5 +0,0 @@
#!/bin/bash
alias c='clear'
alias apt='sudo apt'
alias apt-get='sudo apt-get'

2
composer.sh Normal file → Executable file
View File

@ -1,5 +1,3 @@
#!/bin/bash
alias cr='composer require'
alias ci='composer install'
alias cu='composer update'

2
db.sh Normal file → Executable file
View File

@ -1,5 +1,3 @@
#!/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'

2
ddev.sh Normal file → Executable file
View File

@ -1,5 +1,3 @@
#!/bin/bash
alias console='ddev exec php bin/console'
alias composer='ddev exec composer'
alias npm='ddev exec npm'

2
git.sh Normal file → Executable file
View File

@ -1,5 +1,3 @@
#!/bin/bash
alias ga='git add'
alias gaa='git add .'
alias gc='git commit'

2
list.sh Normal file → Executable file
View File

@ -1,5 +1,3 @@
#!/bin/bash
unalias ls 2>/dev/null
ls() {

5
misc.sh Normal file → Executable file
View File

@ -1,5 +1,6 @@
#!/bin/bash
alias test='php bin/phpunit'
alias cover='php bin/phpunit --coverage-html=html-coverage'
alias cd='z'
alias c='clear'
alias apt='sudo apt'
alias apt-get='sudo apt-get'

View File

@ -4,7 +4,7 @@ cd ~/.dotfiles
echo "Checking for dotfile updates..."
git fetch
if [ $(git rev-parse HEAD) == $(git rev-parse @{u}) ];
if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ];
then
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
case "$choice" in