Skip to content

Instantly share code, notes, and snippets.

@abuturabofficial
Last active December 9, 2021 02:03
Show Gist options
  • Select an option

  • Save abuturabofficial/c865c41b5356b588e9dd8f4890e43c74 to your computer and use it in GitHub Desktop.

Select an option

Save abuturabofficial/c865c41b5356b588e9dd8f4890e43c74 to your computer and use it in GitHub Desktop.

Revisions

  1. Sajid Mahmood revised this gist Dec 9, 2021. No changes.
  2. Sajid Mahmood revised this gist Dec 9, 2021. 1 changed file with 0 additions and 15 deletions.
    15 changes: 0 additions & 15 deletions powershell_profile.ps1
    Original file line number Diff line number Diff line change
    @@ -1,15 +0,0 @@
    #Oh-My-Posh module using InstalledModule Command
    #Import-Module oh-my-posh

    #Set-PoshPrompt -Theme powerlevel10k_modern
    oh-my-posh --init --shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\powerlevel10k_modern.omp.json | Invoke-Expression

    #Terminal Icons for PowerShell
    Import-Module -Name Terminal-Icons

    #History, List view, Vim mode for PowerShell
    Import-Module PSReadLine
    Set-PSReadLineOption -PredictionSource History
    Set-PSReadLineOption -PredictionViewStyle ListView
    Set-PSReadLineOption -EditMode Windows
    Set-PSReadLineOption -EditMode Vi
  3. Sajid Mahmood created this gist Nov 30, 2021.
    2 changes: 2 additions & 0 deletions git_bash.bashrc
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    eval "$(oh-my-posh --init --shell bash --config ~/AppData/Local/Programs/oh-my-posh/themes/powerlevel10k_modern.omp.json)"
    alias ls='ls --color=auto'
    15 changes: 15 additions & 0 deletions powershell_profile.ps1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    #Oh-My-Posh module using InstalledModule Command
    #Import-Module oh-my-posh

    #Set-PoshPrompt -Theme powerlevel10k_modern
    oh-my-posh --init --shell pwsh --config ~\AppData\Local\Programs\oh-my-posh\themes\powerlevel10k_modern.omp.json | Invoke-Expression

    #Terminal Icons for PowerShell
    Import-Module -Name Terminal-Icons

    #History, List view, Vim mode for PowerShell
    Import-Module PSReadLine
    Set-PSReadLineOption -PredictionSource History
    Set-PSReadLineOption -PredictionViewStyle ListView
    Set-PSReadLineOption -EditMode Windows
    Set-PSReadLineOption -EditMode Vi