forked from w0rp/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
44 lines (31 loc) · 1005 Bytes
/
bashrc
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
#!/bin/bash
# A common 'main' script file to include across multiple machines.
. ~/script/aliases
. ~/script/functions
. ~/script/completion/rules
PS1='\W$ '
export PATH="$PATH:$HOME/bin"
# Scripts which should work on any Unix flavour.
export PATH="$PATH:$HOME/script/unix"
# Don't load the Linux-only scripts on Mac OSX
if ! [[ "$OSTYPE" =~ ^darwin ]]; then
export PATH="$PATH:$HOME/script/linux"
fi
# Add the .vim dir to PYTHONPATH for rope.
export PYTHONPATH="$HOME/.vim:$PYTHONPATH"
# Make git accept commit messages generated for merges, so there's less
# typing involved.
export GIT_MERGE_AUTOEDIT=no
# Stop Ctrl+D from closing the terminal.
set -o ignoreeof
# Make history ten times as large as it is by default.
export HISTSIZE=10000
export HISTFILESIZE=20000
# Use Chromium for Karma tests.
export CHROME_BIN=/usr/bin/chromium-browser
# Give Node more RAM
export NODE_OPTIONS="--max_old_space_size=4096"
shopt -s globstar
# Set up the gpg agent.
GPG_TTY="$(tty)"
export GPG_TTY