-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc.toaster
50 lines (42 loc) · 1.56 KB
/
bashrc.toaster
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This .bashrc is the local config. It will call the system config, do
# some setup, call the common config, and then finish up as needed.
SYSTEM_BASHRC=/etc/bashrc
COMMON_BASHRC=$HOME/dotfiles/bashrc.common
# Source system config
for file in $SYSTEM_BASHRC
do
#echo "Sourcing system bashrc $file"
if [ -f $file ]; then
source $file
fi
done
# Set up some variables needed by the common config
SSH_IDENTITY="$HOME/.ssh/id_rsa.toaster"
# Source common config
for file in $COMMON_BASHRC
do
#echo "Sourcing common bashrc $file"
if [ -f $file ]; then
source $file
fi
done
##### begin environment variables
# /opt is for portage. port automatically adds it to ~/.profile, which is not
# where i do things.
#
# postgres is for postgres obv (http://postgresapp.com/documentation/cli-tools.html)
# go is for go (https://golang.org/doc/install)
export PATH=$HOME/bin:/opt/local/bin:/opt/local/sbin:$PATH:/usr/local/go/bin:/Applications/Postgres.app/Contents/Versions/latest/bin
export GOPATH=$HOME/code/go
##### end environment variables
##### begin aliases
### general
alias ls="gls --color=auto" # BSD ls :(
alias sto='ds=`date +%Y-%m-%d` && vi ~/docs/sto/$ds'
alias blo='dest="$HOME/docs/blog" ds=`date +%Y-%m-%d` last=`cd $dest && ls [0-9][0-9][0-9][0-9]-* | tail -1` && cd $dest && vi $last $ds && cd -'
alias jou='dest="$HOME/x/js" ; if [ -d $dest ] ; then ds=`date +%Y-%m-%d` && vi $dest/$ds ; else echo "no dest dir $dest" ; fi'
##### end aliases
##### begin other configuration
umask 007 # this is for "one user per group" type systems.
#eval `dircolors`
##### end other configuration