Skip to content

Commit

Permalink
Added support for ~/.tmux/tmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
von committed Aug 4, 2012
1 parent dcf9d63 commit b3d0804
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Expand Up @@ -142,6 +142,13 @@ inside of tmux, so if you specify `-i` and a new session is needed,
you will get an error. (The reason for this is that there is no way to
clean up the independent session in that case.)

~/.tmux/tmrc
------

If `~/.tmux.tmrc` exists it will be sourced by tm. tmrc can define
functions that can be called in session scripts or set other
environment variables.

Bash Auto-Completion
------

Expand Down
5 changes: 5 additions & 0 deletions tm.sh
Expand Up @@ -264,6 +264,11 @@ while true; do
esac
done

TMRC=${HOME}/.tmux/tmrc
if test -r ${TMRC} ; then
source ${TMRC}
fi

_session=${1:-${TM_DEFAULT_SESSION}}

case ${cmd} in
Expand Down

0 comments on commit b3d0804

Please sign in to comment.