Skip to content

Instantly share code, notes, and snippets.

@K1ethoang
Last active February 28, 2024 01:47
Show Gist options
  • Save K1ethoang/442195ed44450c236e18bcc78786d5eb to your computer and use it in GitHub Desktop.
Save K1ethoang/442195ed44450c236e18bcc78786d5eb to your computer and use it in GitHub Desktop.
# video: https://youtu.be/xDZC5iYg_uU?si=M-uIuK_jWHgRRphv
Write-Host (Get-Date -Format "dddd, dd/MM/yyyy")
Write-Host '>> Xin chào K1ethoang <<'
Write-Host ''
# Themes
# Install: scoop install oh-my-posh
oh-my-posh init pwsh --config 'C:\Users\kieth\scoop\apps\oh-my-posh\current\themes\multiverse-neon.omp.json' | Invoke-Expression
# Icons
# Install: Install-Module -Name Terminal-Icons -Scope CurrentUser -Force
Import-Module Terminal-Icons
# PSFzf
# Install: Install-Module -Name PSFzf -Scope CurrentUser -Force
## Scoop
# Neofetch
# neofetch
# Fzf
Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+f' -PSReadlineChordReserveHistory 'Ctrl+q'
# ALias
Set-Alias lc get-location
# Utilities
function which ($command) {
Get-Command -Name $command -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty Path -ErrorAction SilentlyContinue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment