Comments (3)
Well. That was annoying but I have a fix.
package main
import (
"fmt"
"os"
"syscall"
)
func main() {
dir, _ := os.Getwd()
fmt.Printf("Getwd: %s\n", dir)
fmt.Printf("$PWD: %s\n", os.Getenv("PWD"))
dir, _ = syscall.Getwd()
fmt.Printf("syscall.Getwd: %s\n", dir)
}
Basically I can set the env var from PowerShell as there's no way Go can know you're in that location.
from oh-my-posh.
Clear, I'll have to debug that on Windows. In theory this should work, but clearly something is off.
from oh-my-posh.
I'm going to test this manually one more time with a fresh pair of eyes tomorrow morning.
from oh-my-posh.
Related Issues (20)
- Android AArch64 build HOT 1
- iTerm2 shell integration HOT 1
- Ability to not process the command in `command`
- I always lost my customize when I open the new tab HOT 1
- The git segment doesn't render correctly when switching to a shorter branch name HOT 6
- plugin system like "oh-my-zsh" HOT 1
- python segment not working
- Firebase segment does not work on child folders HOT 2
- Line wrapping the time to 2nd line HOT 4
- Loss of appearance when resizing window HOT 1
- Difference between JSON themes schema and documentation HOT 1
- New segment request: Talosctl current context HOT 6
- Improve performance for git prompts (on PowerShell) HOT 6
- shell config error
- When using nushell with --no-history I get error on oh-my-posh.nu HOT 8
- Long command from history disappears during attempt to modification (for slimfat theme)
- Display keyboard and/or mouse battery status HOT 8
- Weird escape characters on the VSCode integrated Terminal HOT 6
- git {{ .BranchStatus }} reports as ≢ even with upstream
- Disabling update checks from the configuration file
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.