Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 1.95 KB

README.md

File metadata and controls

57 lines (46 loc) · 1.95 KB

Dotfiles(Linux)

Configuration files: Atlassian Tutorial

Windows Powershell Configuration

Heavily inspired from this Youtube video

  1. Scoop
  2. Latest Powershell
  3. Caskaydia Code Nerd Font
  4. Oh My Posh
  5. Git
  6. Neovim

Installation

  • After installing scoop install the following dependecies using scoop.

    scoop install curl sudo jq oh-my-posh neovim gcc fzf ripgrep
  • Install powershell modules

    Install-Module posh-git -Scope CurrentUser -Force
    Install-Module -Name Terminal-Icons -Repository PSGallery -Force
    Install-Module -Name z -Force
    Install-Module -Name PSReadLine -AllowPrerelease -Scope CurrentUser -Force -SkipPublisherCheck
    Install-Module -Name PsFzf -Force
  • Create a powershell user user

      nvim $USERPROFILE/.config/powershell/user_profile.ps1
  • Paste the content below in the previously created file

    Import-Module posh-git
    Import-Module Terminal-Icons
    Import-Module PsFzf
    # Initialize oh-my-posh
    oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\jandedobbeleer.omp.json" | Invoke-Expression
    # FZF Plugin
    Set-PsFzfOption -PSReadLineChordProvider 'Ctrl+f' -PSReadLineChordReversedHistory 'Ctrl+r'
    
    Set-Alias vim nvim
    Set-Alias g git
    Set-Alias ls dir
    Set-Alias grep findstr
  • Link the user_profile.ps1 file in the actual powershell configuration file. Open the default powershell configuration file and paste the content below

    . $env:USERPROFILE\.config\powershell\user_profile.ps1