Mercurial > repos > other > linux
annotate bashrc @ 20:ea572e660598
Fix Thunderbird dates and add more comments
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 16 Nov 2014 20:12:36 +0000 |
parents | 170de0d0d6dd |
children | acbc487533ab |
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 | |
20
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
10 # Use a sane editor |
0 | 11 export EDITOR=/usr/bin/nano |
12 test -s ~/.alias && . ~/.alias || true | |
20
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
13 |
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
14 # Add sbins to path to make life easier (e.g. /sbin/ifconfig) |
0 | 15 export PATH=/sbin:/usr/sbin:/usr/local/sbin:$PATH |
20
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
16 |
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
17 #Disable man page number prompts - where there's more than one, we normally want the default (user command) version |
0 | 18 export MAN_POSIXLY_CORRECT=1 |
19 | |
20
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
20 #Make sure that Thunderbird et al show correct dates |
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
21 export LC_TIME=en_GB.UTF-8 |
ea572e660598
Fix Thunderbird dates and add more comments
IBBoard <dev@ibboard.co.uk>
parents:
19
diff
changeset
|
22 |
19
170de0d0d6dd
Stop less creating a history file
IBBoard <dev@ibboard.co.uk>
parents:
8
diff
changeset
|
23 #Disable less history, because do I really search the same things enough to use it across sessions? |
170de0d0d6dd
Stop less creating a history file
IBBoard <dev@ibboard.co.uk>
parents:
8
diff
changeset
|
24 export LESSHISTFILE=- |
170de0d0d6dd
Stop less creating a history file
IBBoard <dev@ibboard.co.uk>
parents:
8
diff
changeset
|
25 |
0 | 26 if [ "$PS1" != "" -a "${STARTED_TMUX:-x}" = x -a "${SSH_TTY:-x}" != x ] |
27 then | |
28 STARTED_TMUX=1; export STARTED_TMUX | |
29 sleep 1 | |
30 ( (tmux has-session -t remote && tmux attach-session -t remote) || (tmux new-session -s remote) ) && exit 0 | |
31 echo "tmux failed to start" | |
6
013543014cc9
Make sure we import a default bashrc file
IBBoard <dev@ibboard.co.uk>
parents:
0
diff
changeset
|
32 fi |