view bashrc @ 6:013543014cc9

Make sure we import a default bashrc file
author IBBoard <dev@ibboard.co.uk>
date Thu, 01 Aug 2013 13:43:32 +0000
parents 27e8e563b02b
children e6a261f18fb1
line wrap: on
line source

if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

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"
fi