Code Monkey home page Code Monkey logo

Comments (9)

tpope avatar tpope commented on May 9, 2024

This is OS X I take it? Are you running MacVim or console Vim?

from vim-fugitive.

pielgrzym avatar pielgrzym commented on May 9, 2024

Hi,

nope - this is Arch Linux running no DE, just Xmonad + some basic stuff like tmux, zsh etc. I start gvim with dmenu :)

from vim-fugitive.

tpope avatar tpope commented on May 9, 2024

Okay, so I take it you are referring to ssh-agent then. If you echo $SSH_AGENT_PID in a terminal, do you see a pid? What about if you :echo $SSH_AGENT_PID in gvim?

from vim-fugitive.

pielgrzym avatar pielgrzym commented on May 9, 2024

In console there is a PID when I issue in vim (in console) :!echo $SSH_AGENT_PID there is the pid, when I run gvim with dmenu echo in gvim shows nothing, when I fork gvim from terminal - I've got a pid. No need for tweaking vim-fugitive then :) I'll just run gvim from inside urxvt and issue solved :) thanks for pointing this var :)

from vim-fugitive.

tpope avatar tpope commented on May 9, 2024

Great! Note that if you really care to troubleshoot it, it is quite possible to make it work both ways (I can invoke gvim from fvwm's menus in Debian and $SSH_AGENT_PID is set), but how to do it varies from distro to distro, and I can't speak for Arch Linux.

from vim-fugitive.

mathstuf avatar mathstuf commented on May 9, 2024

Getting the ssh-agent info .xinitrc is the easiest solution. I also put it in every zsh instance as well.

from vim-fugitive.

pielgrzym avatar pielgrzym commented on May 9, 2024

@mathstuf - how do you handle key password prompt in xinitrc?

from vim-fugitive.

pielgrzym avatar pielgrzym commented on May 9, 2024

@tpope, I'll investigate the problem. Most likely it's due to my minimalistic configuration, which uses keychain only in zshrc :)

from vim-fugitive.

mathstuf avatar mathstuf commented on May 9, 2024

I don't handle passwords at X start. I start the daemon (using keychain, link below) there (or "attach" if it's already running) and any ssh-add calls from there get shared to all other shells and the X session. I have so many ssh keys (they're also symlinked to an automounted directory if my USB key is found, so they may not be accessible anyways) that asking for passwords would be really cumbersome.

http://freshmeat.net/projects/keychain

from vim-fugitive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.