Comments (2)
Recently released v0.4 should allow you to do this. All you need to do is export in your ~/.zshrc
or ~/.bashrc
a new format with your preferred colours in it.
For bash that would be:
GIT_RADAR_FORMAT=" \x01<your colour code>\x02git:(\x01\033[0m\x02%{remote: }%{branch}%{ :local}\x01<your colour code>\x02)\x01\033[0m\x02%{ :changes}"
replacing <your colour code>
with something from the Bash colour codes list e.g. \033[0;36m
for Cyan.
Note that you need to wrap the code in the \x01
and \x02
parts to tell your terminal emulator that these are non printing characters.
For zsh that would be:
GIT_RADAR_FORMAT=" %{<your colour code>%}git:(%{$reset_color%}%{remote: }%{branch}%{ :local}%{<your colour code>%})%{$reset_color%}%{ :changes}"
replacing <your colour code>
with something from the Zsh colour codes list e.g. $fg[cyan]
for Cyan.
Note that you need to wrap the code in the %{
and %}
parts to tell your terminal emulator that these are non printing characters.
from git-radar.
Works great! Thank you!
from git-radar.
Related Issues (20)
- is_cwd_a_dot_git_directory:1: = not found HOT 7
- Promote new Maintainers HOT 4
- Calling Formula.sha1 is deprecated! HOT 4
- Calling Formula.sha1 is deprecated! HOT 2
- Not upstream indicator taking up too much space HOT 12
- problem with fish HOT 2
- Weird issue with Makefile HOT 2
- Running git-radar --bash is slow HOT 3
- Fish - LS is completely bugged HOT 2
- command overlaps prompt with stash HOT 1
- odd sed error on branches named with multiple / characters HOT 7
- have to pull twice to update a work branch HOT 22
- Made a new lightweight stable version of git-radar HOT 2
- weird characters show up with git-radar on mac os x HOT 8
- fatal error messages with git-radar on local untracked branches HOT 11
- Unhandled git error when a tracked upstream branch is removed HOT 2
- 0.6 upgrade issue HOT 3
- feature req: color prompt red when folder not writable HOT 1
- Reduce the number of binaries needed to be added to the path HOT 3
- cd .git/ produces fatal: /usr/lib/git-core/git-stash cannot be used without a working tree HOT 5
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 git-radar.