kovidgoyal / powerline-daemon

A daemon to reduce the resource consumption of powerline by having a single python process that serves all powerline requests
38 stars 6 forks source link

Add a silent option #9

Closed hanwentao closed 10 years ago

hanwentao commented 10 years ago

We can use 'powerline-daemon -s' in files like .bashrc to start daemon automatically.

kovidgoyal commented 10 years ago

Do you really want the overhead of starting the python interpreter and then checking for a running daemon every time you launch an interactive shell?

Why not just add some code to launch the daemon to your env statrup scripts -- the same scripts sued to launch the gpg and ssh agents?

hanwentao commented 10 years ago

What file do you mean in Linux?

kovidgoyal commented 10 years ago

It depends on your distro and desktop environment. For example, with KDE on Gentoo it is /etc/kde/startup/agent-startup.sh.

If you are using a plain X session, it is ~/.xinitrc or ~/.startx or so on. Just grep /etc and your home directory for ssh-agent

hanwentao commented 10 years ago

I see. However, I still think this silent option makes it complete :)