Repository with my configs.
Clone this repository: git clone git@github.com:ktomaszewski/config.git -b master config
Now change directory: cd config
- Install Git:
sudo dnf install git
- Copy config file:
cp ./Git/.gitconfig ~/.gitconfig
- Copy attributes file:
cp ./Git/.gitattributes PROJECT_ROOT_PATH
- Copy ignore file:
cp ./Git/.gitignore PROJECT_ROOT_PATH
- Create directory for configs:
mkdir -p ~/.config/git
- Download gitk dracula theme:
git clone https://github.com/dracula/gitk.git ~/gitk-dracula-theme
- Copy gitk dracula theme:
cp -r ~/gitk-dracula-theme/gitk ~/.config/git/
- Clean up:
rm -Rf ~/gitk-dracula-theme
- Install zsh:
sudo dnf install zsh
- Change default shell:
chsh -s $(which zsh)
- Install Oh My Zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- Download powerlevel10k theme:
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
- Download zsh-syntax-highlighting plugin:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
- Download zsh-autosuggestions plugin:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
- Copy config file:
cp ./zsh/.zshrc ~/.zshrc
- Install Nano:
sudo dnf install nano
- Copy config file:
cp ./Nano/.nanorc ~/.nanorc
- Create directory for configs:
mkdir -p ~/.config/nano
- Copy syntax highlighting configs:
cp -r ./Nano/syntax-highlighting/* ~/.config/nano
- Copy editor config file:
cp ./EditorConfig/.editorconfig PROJECT_ROOT_PATH
- Import settings in PhpStorm:
./PhpStorm/settings.zip
- Add
ext-intl
dev dependency to composer.json:"require-dev": { "ext-intl": "*" }
- Add
symplify/easy-coding-standard
dev dependency:composer require --dev symplify/easy-coding-standard
- Add composer scripts:
"scripts": { "ecs-check": "vendor/bin/ecs check --match-git-diff", "ecs-fix": "vendor/bin/ecs check --fix --match-git-diff" }
- Copy dist config file:
cp ./EasyCodingStandard/ecs.php.dist PROJECT_ROOT_PATH
- Make config file from dist config file:
cp PROJECT_ROOT_PATH/ecs.php.dist PROJECT_ROOT_PATH/ecs.php
- Add
phpunit/phpunit
dev dependency:composer require --dev phpunit/phpunit
- Add
phpspec/prophecy-phpunit
dev dependency:composer require --dev phpspec/prophecy-phpunit
- Add
dg/bypass-finals
dev dependency:composer require --dev dg/bypass-finals
- Add composer script:
"scripts": { "unit-tests": "vendor/bin/phpunit --configuration ./phpunit.xml" }
- Copy dist config file:
cp ./PHPUnit/phpunit.xml.dist PROJECT_ROOT_PATH
- Make config file from dist config file:
cp PROJECT_ROOT_PATH/phpunit.xml.dist PROJECT_ROOT_PATH/phpunit.xml
- Create directory for extensions:
mkdir -p PROJECT_ROOT_PATH/tests/Extension
- Copy bypass final hook:
cp ./PHPUnit/BypassFinalHook.php PROJECT_ROOT_PATH/tests/Extension