Commit 6b530025 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

added tmux configs

parent 882f4caa
Loading
Loading
Loading
Loading

.tmux.conf

0 → 100644
+21 −0
Original line number Diff line number Diff line
set -g history-limit 5000
set -g status-keys vi
set-window-option -g utf8 on
set-window-option -g mode-keys vi
set -g lock-command /usr/bin/vlock
set -ga update-environment " DBUS_SESSION_BUS_ADDRESS"
set -ga update-environment " DBUS_SESSION_BUS_PID"

source-file ${HOME}/.tmux/screen-keys.conf
source-file ${HOME}/.tmux/personal-keys.conf
source-file ${HOME}/.tmux/paste-buffer.conf
source-file ${HOME}/.tmux/first-instance.conf

# Bind m to open a man page in a new pane from prompt
unbind m
bind m command-prompt -p 'Open Man Page: ' "split-window -v 'man %%'"
unbind M
bind M command-prompt -p 'Open Man Page: ' "split-window -h 'man %%'"


# vim:ft=tmux
+4 −0
Original line number Diff line number Diff line
# Start new session and switch to it
link-window -s General:0 -t 0

# vim:ft=tmux
+3 −0
Original line number Diff line number Diff line
new -d -s General -n Main '~/.tmux/motd-shell.sh'

# vim:ft=tmux

.tmux/motd-shell.sh

0 → 100755
+4 −0
Original line number Diff line number Diff line
#!/bin/sh
cat /etc/motd /run/motd.dynamic 2>/dev/null
SHELL=${SHELL:-`getent passwd ${USER:-root} | cut -f7 -d:`}
exec "$SHELL" -l "$@"

.tmux/new-session.sh

0 → 100755
+9 −0
Original line number Diff line number Diff line
#!/bin/sh
# set up a new session by sourcing child-instance.conf from a high-numbered 
# window (this allows window 0 to exit so that it can be replaced by 
# child-instance.conf)
case "$__NEW_SESSION_SOURCE__" in
	'') tmux new-window -t 99 "__NEW_SESSION_SOURCE__=yes '$0'" ;;
	yes) tmux source ~/.tmux/child-instance.conf ;;
esac
#exec ~/.tmux/motd-shell.sh
Loading