Comments (9)
This is OS X I take it? Are you running MacVim or console Vim?
from vim-fugitive.
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.
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.
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.
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.
Getting the ssh-agent info .xinitrc is the easiest solution. I also put it in every zsh instance as well.
from vim-fugitive.
@mathstuf - how do you handle key password prompt in xinitrc?
from vim-fugitive.
@tpope, I'll investigate the problem. Most likely it's due to my minimalistic configuration, which uses keychain only in zshrc :)
from vim-fugitive.
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)
- Unintuitive behavior of `-` on (theirs) deleted file when rebasing
- **warning** (netrw) shell signalled an error HOT 1
- Git does not open status window HOT 4
- Remote file path is incorrectly encoded before being passed to `GBrowse` handler HOT 3
- In the :Git blame view, the highlighted cursorline in the other window does not travel with active window
- [Windows] Process failed to start: name too long HOT 1
- [Feature Request] auto complete remote git branch
- Make `:Git branch` interactive when checking out w/ `coo`
- Fugitive-specific git config HOT 4
- :Git <some_command> gives `<some_command> is not a valid function or action` HOT 4
- Ggrep: how to run in the context of containing git repo folder
- Conflict with gitsigns.nvim when staging a hunk HOT 3
- Stable release?
- `:Git blame` output is misaligned when LSPSaga Breadcrumbs are enabled HOT 1
- Re-open commit message editing window after a commit is rejected by a commit-msg hook HOT 5
- Gdiffsplit Ignore whitespace in diff HOT 1
- Gsplit: get other branch name HOT 1
- Diffing a renamed file among different commits
- What git command, if any, does inline diff call? HOT 2
- Creating own `:Git` commands like `:Git pushom` HOT 2
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 vim-fugitive.