-
Notifications
You must be signed in to change notification settings - Fork 0
/
.profile
77 lines (59 loc) · 1.88 KB
/
.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Path
##########
PATH=~/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
if [ -d "/Applications/Postgres.app" ]; then
PATH="$PATH:/Applications/Postgres.app/Contents/Versions/latest/bin";
fi
# Node
PATH=~/.npm-global/bin:$PATH
# Golang
export GOPATH=~/go
PATH=$PATH:$GOPATH/bin
# Composer
export COMPOSERPATH=~/.composer
PATH=$PATH:$COMPOSERPATH/vendor/bin
export PATH
# Other application env variables
#################################
# Perl
export PERL5LIB=/usr/local/Cellar/git/2.6.3/lib/perl5/site_perl
# Rust
if [ -d "$HOME/.cargo" ]; then
. "$HOME/.cargo/env";
fi
export DEV_DIR=$HOME/dev
# Environment
##############
export VISUAL='vim'
export EDITOR='vim'
export LANG="en_GB.UTF-8"
# Syntax highlighting for less:
# Install with "brew install source-highlight"
export LESSOPEN="| src-hilite-lesspipe.sh %s"
export LESS='-R'
export MORE='-R'
# Disable the less history file
export LESSHISTFILE="-"
# Decrease the lag when switching to normal mode on the command line:
export KEYTIMEOUT=1
# Man syntax highlighting
#########################
export LESS_TERMCAP_mb=$(printf '\e[31m') # enter blinking mode – red
export LESS_TERMCAP_md=$(printf '\e[35m') # enter double-bright mode – magenta
export LESS_TERMCAP_me=$(printf '\e[0m') # turn off all appearance modes (mb, md, so, us)
export LESS_TERMCAP_se=$(printf '\e[0m') # leave standout mode
export LESS_TERMCAP_so=$(printf '\e[07;33m') # enter standout mode – yellow background
export LESS_TERMCAP_ue=$(printf '\e[0m') # leave underline mode
export LESS_TERMCAP_us=$(printf '\e[04;36m') # enter underline mode – cyan
# Tmux
#######
# Disable auto-renaming of windows:
export DISABLE_AUTO_TITLE=true
# File limits
#############
ulimit -n 200000
ulimit -u 2048
# load travis
[ -f $HOME/.travis/travis.sh ] && source $HOME/.travis/travis.sh
# Per-system profile
[ -r ~/.profile.local ] && . ~/.profile.local