Markup window terminal

Mon, March 11, 2024 - 1 min read

starship

starship support many type of terminal with some awesome preset

Make terminal auto-complete cabability

cmd

Install clink first. Then install starship

powershell

  • Install PSReadLine

    Install-Module PSReadLine -Force
    # open C:\Users\<UserName>\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1
    notepad $PROFILE
    # then add these lines and save
    Invoke-Expression (&starship init powershell)
    Import-Module PSReadLine
    
    Set-PSReadLineOption -PredictionSource History
    
    Set-PSReadLineOption -HistorySearchCursorMovesToEnd
    Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
    Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
    Set-PSReadLineKeyHandler -Chord "Ctrl+RightArrow" -Function ForwardWord
    
    Set-PSReadLineOption -Colors @{ InlinePrediction = '#875f5f'}

linux terminal

Install and use fish shell