diff bashrc @ 0:27e8e563b02b

* First config files
author IBBoard <dev@ibboard.co.uk>
date Sat, 27 Jul 2013 19:29:29 +0100
parents
children 013543014cc9
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bashrc	Sat Jul 27 19:29:29 2013 +0100
@@ -0,0 +1,12 @@
+export EDITOR=/usr/bin/nano
+test -s ~/.alias && . ~/.alias || true
+export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH
+export MAN_POSIXLY_CORRECT=1
+
+if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ]
+then
+        STARTED_TMUX=1; export STARTED_TMUX
+        sleep 1
+        ( (tmux has-session -t remote && tmux attach-session -t remote) || (tmux new-session -s remote) ) && exit 0
+        echo "tmux failed to start"
+f
\ No newline at end of file