Mercurial > index.cgi > dotfiles
annotate .bash_profile @ 41:2bea356b1032
* Added default screenrc from Linux (and the Screen installation) to .screenrc
* Brought ~/.vim into repository (some syntax hilighting add-ons, gnupg
plugin)
* Hard-coded paths for aliases so as not to conflict with GNU coreutils from a
Macports install
* Removed dvra alias
* Added $VNCVIEWER and changed VNC-type aliases to use it
* Added syrinx aliases
* Added syrinx to toodledo targets
author | huston@80426f53-59d1-405d-934b-f07cd76f4a1a |
---|---|
date | Thu, 17 Jun 2010 16:29:11 +0000 |
parents | f59f847377d7 |
children | d59d16a55494 |
rev | line source |
---|---|
19
f65964738bab
Added Id tag to files, and svn propset svn:keywords as appropriate
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
16
diff
changeset
|
1 # $Id$ |
f65964738bab
Added Id tag to files, and svn propset svn:keywords as appropriate
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
16
diff
changeset
|
2 # |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
3 # This file is sourced for interactive login shells, or |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
4 # non-interactive shells with the --login option. So things which you |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
5 # want to happen only on login shells should go here. |
0 | 6 |
7 # Get the aliases and functions | |
8 if [ -f ~/.bashrc ]; then | |
30
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
9 . ~/.bashrc |
0 | 10 fi |
11 | |
12 # User specific environment and startup programs | |
13 | |
1
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
14 # BASH_ENV is sourced for non-interactive shells; however, since we |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
15 # source ~/.bashrc above I don't think we have to here also. |
7e33b3191cf7
Merged in settings from home, and at the same time edited some of the
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
0
diff
changeset
|
16 # export BASH_ENV=$HOME/.bashrc |
0 | 17 |
7
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
18 # These lines are helpful if you routinely might login without passing an |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
19 # ssh-agent's authentication through. This way when you login, an agent is |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
20 # exec'd for you (the corresponding lines in .bash_logout should kill the |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
21 # agent when you logout, however they sometimes fail such as when killing your |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
22 # shell without a proper logout or closing the connection). I left it here, |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
23 # though I personally don't use/need it anymore. |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
24 |
0 | 25 #if [ "X$SSH_AUTH_SOCK" = "X" ] ; then |
30
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
26 # eval `/usr/bin/ssh-agent` |
0 | 27 #fi |
6
f5b253e17e34
Added test for .dotfilets, to check the status against the svn repo once per
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
1
diff
changeset
|
28 |
7
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
29 # This part is quite useful if you have your dotfiles stored in subversion |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
30 # (though it could be edited fairly easily for any other version control |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
31 # system I'm sure). We check the timestamp of the file '$HOME/.dotfilets'. |
13
dacbbae5965c
Added Ruby setup variables
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
11
diff
changeset
|
32 # If it's older than a month, run a 'svn st -u' and touch it; this way we |
dacbbae5965c
Added Ruby setup variables
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
11
diff
changeset
|
33 # check once per month to see if we forgot to pull down an updated version. |
7
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
34 |
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
35 [[ ! -f $HOME/.dotfilets || \ |
30
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
36 `eval $DFSTAT` -lt `eval $MDATE` ]] && { |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
37 echo -n Dotfiles last checked over a month ago |
16
b9896ae0733c
Stole pretty PS1 and xterm title changing from BackTrack 4. Also added a
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
15
diff
changeset
|
38 |
30
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
39 # Here we switch for hosts we don't want to check, just warn |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
40 case `hostname -s` in |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
41 bt) |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
42 echo |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
43 touch $HOME/.dotfilets |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
44 ;; |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
45 |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
46 *) |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
47 echo , running a status test. |
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
48 svn st -u && touch $HOME/.dotfilets & |
33
f59f847377d7
* Added toodledo interfacing
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
30
diff
changeset
|
49 disown %+ |
30
ca6c77fe843b
* Whitespace (ugh)
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
27
diff
changeset
|
50 esac |
7
1e8e782fccab
Merge together the Linux and Darwin tests for the subversion status command,
huston@80426f53-59d1-405d-934b-f07cd76f4a1a
parents:
6
diff
changeset
|
51 } |