Comments (15)
+1
from git-radar.
You can use --bash option to build your prompt with fish
function fish_prompt --description 'Write out the prompt'
printf '[%s] %s%s%s%s\f\r> ' (date "+%H:%M:%S") (set_color -o blue) (pwd) (set_color normal) (git-radar --bash --fetch)
end
[09:28:21] /some/repo git:(upstream ⚡ master) 1A 1D 13A
It would be nice at least a mention about this in the readme. I'm happy to make a PR.
from git-radar.
Thats quick @kernelp4nic :) But its not working.. i have lot of unstaged changes, it just displayes >
, nothing else
from git-radar.
@Rameshv sorry I don't use fish so I haven't it yet. I'll look in to this. Can you send me an example fishrc so I know where to start?
from git-radar.
Sure @michaeldfallen. fish config usually stored in ~/.config/fish/config.fish
, it kinda look like this
# Path to your oh-my-fish.
set fish_path $HOME/.oh-my-fish
# Theme
#set fish_theme robbyrussell
# Load oh-my-fish configuration.
. $fish_path/oh-my-fish.fish
set fish_plugins git autojump bundler rvm rails rake node python emoji-clock
#set path vars
set PATH $PATH ~/softwares/mongodb-osx-x86_64-2.4.9/bin
set PATH $PATH ~/softwares/redis-2.8.7/src
set PATH $PATH ~/softwares/android-sdk-macosx/tools
#set aliases for frequently used commands
alias gitlog='git log --all --graph --pretty=format:"%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset" --abbrev-commit --date=relative'
alias gits='git status -sb'
and fish_prompt
is a method responsible for displaying the prompt as specified by @kernelp4nic
from git-radar.
would be nice to have git-radar in one of the tackle themes https://github.com/justinmayer/tackle instead of vcprompt
from git-radar.
+1
from git-radar.
+1
from git-radar.
from git-radar.
@bogem Nice!
My alternate version that matches the existing prompt that I had:
function fish_prompt
echo -n (whoami)@(hostname|cut -d . -f 1)
echo -n " "
set_color $fish_color_cwd
echo -n (prompt_pwd)
git-radar --fish -fetch
set_color normal
echo -n '> '
end
I guess the Brew formula just needs to be updated now, as there's no --fish
flag in 0.2. :)
from git-radar.
@tooolbox thanks :)
I like minimal prompts
Yes. Brew formula needs to be updated
from git-radar.
Something looks strange for me. Any ideas why?
from git-radar.
sorry that I haven't published the new version, looking to automate that as soon as possible. I want to get the configurable prefixes mentioned in #17 and #15 before releasing. Tonight I hope.
from git-radar.
I cloned your repository. I am currently using da76c7d
Isn't this the latest version?
from git-radar.
Awesome project.
When you publish the new version, perhaps consider adding oh-my-fish theme.
Put up an example omf theme based on git-radar here: https://github.com/kenglxn/git-radar-omf-theme
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.