joshdick / dotfiles Goto Github PK
View Code? Open in Web Editor NEW๐ ~josh
๐ ~josh
I've been using your git prompt and am absolutely loving it--it's simple and clean. I recently switched to a bare git repo approach to managing dotfiles where it references my dotfile repo ~/.dotfiles.git
and uses --work-tree=$HOME
. It also uses branches to manage dotfiles across my machines--machine-specific config go to their respective $HOST branch while config share by all my machines reside in the master branch.
It is important to distinguish between the branches, which is why I'm wondering if you can help me add support for my specific scenario where the git prompt should show when I'm at $HOME (since this is where dotfiles reside) and the states (e.g. information like what branch you're in) should correspond to the bare git repo ~/.dotfiles.git
.
At the moment, for managing dotfiles using a bare git repo, the git prompt will not show up unless I'm inside the bare git repo (as expected), but if using the dotfile management described in the post I've linked, it'd make more sense if it shows up in ~
.
Any help is much appreciated--I really want to continue using this git prompt.
Thanks for this wonderful prompt!
Please consider using double quotes in prompt PS1 line.
There is no issue using your .zshrc file as a standalone config. However, if I want to just use the prompt section with GRML zsh, I get an error related to PS1 and the single quotes:
Switching from:
PS1='
$(ssh_info)%{$fg[magenta]%}%~%u $(git_info)
%(?.%{$fg[blue]%}.%{$fg[red]%})%(!.#.โฏ)%{$reset_color%} '
To (double quotes):
PS1="
$(ssh_info)%{$fg[magenta]%}%~%u $(git_info)
%(?.%{$fg[blue]%}.%{$fg[red]%})%(!.#.โฏ)%{$reset_color%} "
Fixes that!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.