Mercurial > repos > other > linux
annotate bashrc @ 8:e6a261f18fb1
Add Bash Completion sourcing
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Fri, 20 Sep 2013 19:51:37 +0000 |
parents | 013543014cc9 |
children | 170de0d0d6dd |
rev | line source |
---|---|
6
013543014cc9
Make sure we import a default bashrc file
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
1 if [ -f /etc/bashrc ]; then |
013543014cc9
Make sure we import a default bashrc file
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
2 . /etc/bashrc |
013543014cc9
Make sure we import a default bashrc file
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
3 fi |
013543014cc9
Make sure we import a default bashrc file
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
4 |
8 | 5 # Use bash-completion, if available |
6 if [ -f /etc/bash_completion ]; then | |
7 . /etc/bash_completion | |
8 fi | |
9 | |
0 | 10 export EDITOR=/usr/bin/nano |
11 test -s ~/.alias && . ~/.alias || true | |
12 export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH | |
13 export MAN_POSIXLY_CORRECT=1 | |
14 | |
15 if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ] | |
16 then | |
17 STARTED_TMUX=1; export STARTED_TMUX | |
18 sleep 1 | |
19 ( (tmux has-session -t remote && tmux attach-session -t remote) || (tmux new-session -s remote) ) && exit 0 | |
20 echo "tmux failed to start" | |
6
013543014cc9
Make sure we import a default bashrc file
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
21 fi |