-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbaseenv.sh
executable file
·59 lines (43 loc) · 1.38 KB
/
baseenv.sh
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
51
52
53
54
55
56
57
58
59
#!/bin/sh
mkdir -p ~/bin
export PATH=$PATH:$HOME/bin
DOTFILES=~/src/mine/dotfiles
MINE=~/src/mine/skunkworks
which realpath
if [ "$?" != "0" ]; then
echo "realpath not present"
mkdir -p ~/bin
cp "$DOTFILES/env/osx/realpath" ~/bin/realpath
fi
source "${DOTFILES}/shell/functions.sh"
export PS1='\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[33m\]$(parse_git_branch)\[\033[00m\]\n\W \\$ \[$(tput sgr0)\]'
export SRC=$HOME/src
export MIRROR=$DB/Mirror
if [ -d ~/man ]; then
MANPATH=~/man:"${MANPATH}"
export MANPATH
fi
if [ `uname` == "Darwin" ]; then
export LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
fi
if test `id -nu` != 'jacob'; then
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
fi
if test `uname` == 'Darwin'; then
alias ls='ls -G'
else
alias ls='ls --color=auto'
fi
alias ll='ls -la'
alias l='ls -1'
alias prev='svn diff PREV'
alias quickmacs='emacs -nw -q'
alias nicepy='~/opt/mypy/bin/ipython'
alias oe-mode='source $OEBASE/scripts/oerc.sh'
alias oe-mongo='mongod run --config ~/lnk/oe/conf/mongod.conf'
bind '"\C-l":"ls\n"'
export PROMPT_COMMAND='if [ "$(id -u)" -ne 0 ]; then echo -e "$(date "+%Y-%m-%d.%H:%M:%S") $(pwd) $(history 1)" >> $MINE/arkiv/shell.txt; fi'
export CDPATH=.:~/src:~:~/src/mine
# XDG Base Directories
export XDG_CONFIG_HOME="`realpath ~/.config`"
export XDG_CACHE_HOME="`realpath ~/.cache`"