forked from oryband/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bash_profile
53 lines (38 loc) · 2.21 KB
/
bash_profile
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
PS1="\w$ " # Custom prompt text (full pwd).
export CLICOLOR=1 # Enable terminal colors
export LSCOLORS=Gxfxbxdxcxegedabagacad # File-type color definition (e.g. files=grey, directories=bold cyan, etc.) -- Dark background.
#export LSCOLORS=ExFxCxDxBxegedabagacad # Light background.
# STDERR Red.
# NOTE: Installing on OS X will break the `open` command line utility. So
# things like `mvim` and `open` itself will not work unless the application being
# opened is already opened. It's because of flat namespace forced by
# `DYLD_FORCE_FLAT_NAMESPACE` which is required by `DYLD_INSERT_LIBRARIES`.
# Alternative to enabling it globally via shell config is to create alias and
# use it to selectively colorize stderr for the commands you run:
# $ alias stderred='LD_PRELOAD=/absolute/path/to/lib/stderred.so'
# $ stderred java lol
export DYLD_INSERT_LIBRARIES=$HOME/Documents/dotfiles/stderred/lib/stderred.dylib DYLD_FORCE_FLAT_NAMESPACE=1
alias cls="clear" # Windows command. :)
alias vi=/Applications/MacVim.app/Contents/MacOS/Vim # Override pre-installed Vim and use Homebrew"s newer version MacVim instead.
alias vim="vi"
alias ll="ls -l"
alias la="ls -Al" # show hidden files, with -l.
alias grep="grep --color=auto -I" # Colorful, skipping binary files.
alias less="less -R" # Colorful less.
alias ghci="ghci-color"
export LESS="FRSXQ" # Colorful diffing in Mercurial.
export LESS_TERMCAP_mb=$'\E[01;31m' # Colorful man pages.
export LESS_TERMCAP_md=$'\E[01;31m'
export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_so=$'\E[01;44;33m'
export LESS_TERMCAP_ue=$'\E[0m'
export LESS_TERMCAP_us=$'\E[01;32m'
PATH="/usr/local/bin:/usr/local/sbin:${PATH}" # Give priority to Homebrew's bin & sbin dirs on top of the system's dirs.
PATH="/usr/local/share/python:${PATH}" # Add Homebrew's Python to $PATH, before the system's Python.
#PATH="~/Applications/google-appengine:${PATH}" # Necessary for using with django-nonrel.
PATH="$HOME/.cabal/bin:$PATH" # Haskell Packages.
export PATH
#NODE_PATH="/usr/local/lib/jsctags:${NODE_PATH}" # Add doctorjs to Node's library path.
NODE_PATH="/usr/local/lib/node_modules:${NODE_PATH}" # Add Homebrew's node.js package dir to path.
export NODE_PATH