2021-09-01 17:19:46 +00:00
|
|
|
oh-my-posh --init --shell pwsh --config ~/.config/ohmyposh/config.json | Invoke-Expression
|
|
|
|
Import-Module Terminal-Icons
|
2021-09-01 18:01:31 +00:00
|
|
|
Import-Module PSReadLine -Force
|
2021-09-01 17:19:46 +00:00
|
|
|
Set-PSReadLineOption -PredictionSource History
|
|
|
|
Set-PSReadLineOption -PredictionViewStyle ListView
|
|
|
|
Set-PSReadLineOption -EditMode Windows
|
|
|
|
Function fndclogs([string]$container) {docker logs -f --tail 100 $container}
|
|
|
|
Set-Alias -Name dclogs -Value fndclogs
|
|
|
|
Function fndcupd {docker-compose up -d --remove-orphans}
|
|
|
|
Set-Alias -Name dcupd -Value fndcupd
|
|
|
|
Function fndcdown {docker-compose down}
|
|
|
|
Set-Alias -Name dcdown -Value fndcdown
|
|
|
|
Function fnfullupdate {sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y}
|
|
|
|
Set-Alias -Name fullupdate -Value fnfullupdate
|
|
|
|
Function fnll {ls -la}
|
|
|
|
Set-Alias -Name ll -Value fnll
|