Giter Site home page Giter Site logo

Comments (4)

BerkeAlpaslan avatar BerkeAlpaslan commented on August 22, 2024

Screenshot 2024-07-21 120653

Git, Node.Js, idirectory path etc. segments are not working

from oh-my-posh.

BerkeAlpaslan avatar BerkeAlpaslan commented on August 22, 2024

Load Prompt Config

function Get-ScriptDirectory { Split-Path $MyInvocation.ScriptName }
$PROMPT_CONFIG = Join-Path (Get-ScriptDirectory) 'baracuda.omp.json'
oh-my-posh --init --shell pwsh --config $PROMPT_CONFIG | Invoke-Expression

Icons

Import-Module -Name Terminal-Icons

PSReadLine

Set-PSReadLineOption -EditMode Emacs
Set-PSReadLineOption -BellStyle None
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineKeyHandler -Chord 'Ctrl+d' -Function DeleteChar

Fzf

Import-Module PSFzf
Set-PsFzfOption -PSReadLineChordProvider 'Ctrl+f' -PSReadLineChordReverseHistory 'Ctrl+r'

Alias

Set-Alias clear cls
Set-Alias touch ni
Set-Alias ifconfig ipconfig
Set-Alias vim nvim
Set-Alias ll ls
Set-Alias g git
Set-Alias grep findstr
Set-Alias tig 'C:\Program Files\Git\usr\bin\tig.exe'
Set-Alias less 'C:\Program Files\Git\usr\bin\less.exe'

Utilities

function which ($command) {
Get-Command -Name $command -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty Path -ErrorAction SilentlyContinue
}

My "user_profile.ps1" folder like that

from oh-my-posh.

BerkeAlpaslan avatar BerkeAlpaslan commented on August 22, 2024

[Console]::OutputEncoding = [Text.Encoding]::UTF8
. $env:USERPROFILE.config\powershell\user_profile.ps1
$env:Path += ";C:\Users\berke\AppData\Local\Programs\oh-my-posh\bin"

"Microsoft.Powerhell_profile"

from oh-my-posh.

BerkeAlpaslan avatar BerkeAlpaslan commented on August 22, 2024

When I say "oh-my-posh debug" on Angular project file, it seems every segment works correctly. But when I close debug mode, a lot of segments are not working. I think last update 21.28.0 has problem

from oh-my-posh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.