minor refactor
This commit is contained in:
parent
bb266e3094
commit
0f0fe951ee
5
alias.sh
5
alias.sh
@ -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
2
composer.sh
Normal file → Executable file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
alias cr='composer require'
|
alias cr='composer require'
|
||||||
alias ci='composer install'
|
alias ci='composer install'
|
||||||
alias cu='composer update'
|
alias cu='composer update'
|
2
db.sh
Normal file → Executable file
2
db.sh
Normal file → Executable file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
alias schema='php bin/console doctrine:schema:update --force'
|
alias schema='php bin/console doctrine:schema:update --force'
|
||||||
alias migr='php bin/console doctrine:fixtures:load --no-interaction'
|
alias migr='php bin/console doctrine:fixtures:load --no-interaction'
|
||||||
alias drop='php bin/console doctrine:database:drop --force'
|
alias drop='php bin/console doctrine:database:drop --force'
|
||||||
|
2
ddev.sh
Normal file → Executable file
2
ddev.sh
Normal file → Executable file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
alias console='ddev exec php bin/console'
|
alias console='ddev exec php bin/console'
|
||||||
alias composer='ddev exec composer'
|
alias composer='ddev exec composer'
|
||||||
alias npm='ddev exec npm'
|
alias npm='ddev exec npm'
|
||||||
|
2
git.sh
Normal file → Executable file
2
git.sh
Normal file → Executable file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
alias ga='git add'
|
alias ga='git add'
|
||||||
alias gaa='git add .'
|
alias gaa='git add .'
|
||||||
alias gc='git commit'
|
alias gc='git commit'
|
||||||
|
2
list.sh
Normal file → Executable file
2
list.sh
Normal file → Executable file
@ -1,5 +1,3 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
unalias ls 2>/dev/null
|
unalias ls 2>/dev/null
|
||||||
|
|
||||||
ls() {
|
ls() {
|
||||||
|
5
misc.sh
Normal file → Executable file
5
misc.sh
Normal file → Executable file
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
alias test='php bin/phpunit'
|
alias test='php bin/phpunit'
|
||||||
alias cover='php bin/phpunit --coverage-html=html-coverage'
|
alias cover='php bin/phpunit --coverage-html=html-coverage'
|
||||||
alias cd='z'
|
alias cd='z'
|
||||||
|
alias c='clear'
|
||||||
|
alias apt='sudo apt'
|
||||||
|
alias apt-get='sudo apt-get'
|
@ -4,7 +4,7 @@ cd ~/.dotfiles
|
|||||||
echo "Checking for dotfile updates..."
|
echo "Checking for dotfile updates..."
|
||||||
git fetch
|
git fetch
|
||||||
|
|
||||||
if [ $(git rev-parse HEAD) == $(git rev-parse @{u}) ];
|
if [ $(git rev-parse HEAD) != $(git rev-parse @{u}) ];
|
||||||
then
|
then
|
||||||
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
|
read -p "Dotfiles can be updated. Do you want to proceed? (y/n)" choice
|
||||||
case "$choice" in
|
case "$choice" in
|
Loading…
x
Reference in New Issue
Block a user