Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added support for ~/.tmux/tmrc

  • Loading branch information...
commit b3d0804abf598284aff66f79bf063d7896ace35e 1 parent dcf9d63
@von authored
Showing with 12 additions and 0 deletions.
  1. +7 −0 README.md
  2. +5 −0 tm.sh
View
7 README.md
@@ -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
------
View
5 tm.sh
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.