Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fish support #5

Open
skrat opened this issue Aug 26, 2015 · 15 comments
Open

Fish support #5

skrat opened this issue Aug 26, 2015 · 15 comments

Comments

@skrat
Copy link

skrat commented Aug 26, 2015

...would be nice

@Rameshv
Copy link

Rameshv commented Aug 26, 2015

+1

@kernelp4nic
Copy link

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.

@Rameshv
Copy link

Rameshv commented Aug 26, 2015

Thats quick @kernelp4nic :) But its not working.. i have lot of unstaged changes, it just displayes >, nothing else

@michaeldfallen
Copy link
Owner

@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?

@Rameshv
Copy link

Rameshv commented Aug 26, 2015

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

@oppianmatt
Copy link

would be nice to have git-radar in one of the tackle themes https://github.com/justinmayer/tackle instead of vcprompt

@alex-kovshovik
Copy link

+1

1 similar comment
@tooolbox
Copy link

+1

@n10v
Copy link
Contributor

n10v commented Aug 28, 2015

74080c7
4fa1744

@tooolbox
Copy link

@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. :)

@n10v
Copy link
Contributor

n10v commented Aug 29, 2015

@tooolbox thanks :)
I like minimal prompts
Yes. Brew formula needs to be updated

@jschneider
Copy link

Something looks strange for me. Any ideas why?

git-radar

@michaeldfallen
Copy link
Owner

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.

@jschneider
Copy link

I cloned your repository. I am currently using da76c7d
Isn't this the latest version?

@kenglxn
Copy link

kenglxn commented Aug 30, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants