refacto par dossier

This commit is contained in:
Laurent Le Houerou 2021-09-02 12:33:17 +04:00
parent ceac695601
commit b6a1e38dba
6 changed files with 5 additions and 6 deletions

1
git/setup.ps1 Normal file
View File

@ -0,0 +1 @@
Copy-Item ./git/.gitconfig ~/.gitconfig

View File

@ -18,6 +18,7 @@ chsh -s /usr/bin/pwsh
sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh
pwsh -c ./setup.ps1
pwsh -c ./shell/setup.ps1
pwsh -c ./git/setup.ps1
pwsh

View File

@ -1,10 +1,7 @@
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
Install-Module -Name Terminal-Icons -Repository PSGallery
Install-Module PSReadLine -AllowPrerelease -Force -RequiredVersion 2.2.0-beta1
mkdir -p (Split-Path -Path $PROFILE)
Copy-Item powershell_profile.ps1 $PROFILE
Copy-Item ./shell/powershell_profile.ps1 $PROFILE
mkdir -p ~/.config/ohmyposh
Copy-Item posh_config.json ~/.config/ohmyposh/config.json
Copy-Item .gitconfig ~/.gitconfig
Copy-Item ./shell/posh_config.json ~/.config/ohmyposh/config.json