Comments (4)
Git, Node.Js, idirectory path etc. segments are not working
from oh-my-posh.
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.
[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.
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)
- Init is Extremely Slow HOT 1
- CONFIG ERROR when specifying default config file HOT 4
- Disable oh-my-posh if it detects that it is not running with a TTY HOT 7
- Optionally silence autoupgrade output HOT 2
- Config Error when trying to apply theme HOT 1
- Upgrade Fails HOT 8
- Auto_upgrade Linux non-root permission denied HOT 1
- Show current mode in ZSH Vi mode
- Unknown battery state
- More fine-grained controls over color cycle
- Set default `parse_kubeconfig` property within Kubernetes segment to `true` HOT 1
- Time segments fails to display in WSL with Ubuntu HOT 3
- An exception occurs when a multi-line command is very long HOT 1
- Posh-Git git add tab file completion is broken HOT 3
- Auto-upgrade instructions need direction HOT 6
- home_enabled: true not working HOT 3
- Add IconicFonts HOT 5
- "oh-my-posh disable notice" not working HOT 1
- clink prints random values on error HOT 2
- Backslashes in VSCode with Bash terminal HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oh-my-posh.