Friday, May 16, 2014

Tmux: open new pane/window base on current directory

You need to rebind your short key with argument -c "#{pane_current_path}"

E.g.
New vertical pane
Default: bind % split-window -h
To: bind % split-window -h -c "#{pane_current_path}"

New horizontal pane
Default: bind '"' split-window
To: bind '"' split-window -c "#{pane_current_path}"

New window
Default: bind c new-window
To: bind c new-window -c "#{pane_current_path}"

Credit: Tmux forgets the directory where the session was created

Collectd PostgreSQL Plugin

I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresql