-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile
90 lines (68 loc) · 2.56 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
78
79
80
81
82
83
84
85
86
87
88
89
90
#!/usr/bin/env sh
#
# Personal login shell configuraton ~/.profile
#
# A shell agnostic file for login configuration and environment variables.
#
# look for per directory ack! settings
export ACKRC='.ackrc'
# Set architecture flags
export ARCHFLAGS="-arch $(uname -m)"
export C_INCLUDE_PATH=/usr/local/include
# make vim the default editor
export EDITOR='vim'
# set the default visual editor used by other commands
if [ -f $(command -v subl) ]
then
export VISUAL="$(command -v subl) --new-window"
else
export VISUAL=$EDITOR
fi
# Locale
export LC_ALL='en_US.UTF-8'
export LANG='en_US.UTF-8'
export LANGUAGE='en_US.UTF-8'
export GNUTERM='x11'
# enable colored output from commands on FreeBSD-based systems
export CLICOLOR=true
if ! command -v most &> /dev/null; then
export MANPAGER='most'
else
# Use Less Colors for manual pages
export LESS_TERMCAP_mb=$'\e[01;31m' # begin blinking
export LESS_TERMCAP_md=$'\e[01;38;5;74m' # begin bold
export LESS_TERMCAP_me=$'\e[0m' # end mode
export LESS_TERMCAP_so=$'\e[38;5;246m' # begin standout-mode info box
export LESS_TERMCAP_se=$'\e[0m' # end standout-mode
export LESS_TERMCAP_us=$'\e[04;38;5;146m' # begin underline
export LESS_TERMCAP_ue=$'\e[0m' # end underline
# Do not clear the screen after quitting manual pages
export MANPAGER='less -X'
fi
#
# Path configuration
# macOS default path is defined in /private/etc/paths
#
# Use user-installed binaries before system install versions.
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin
# Ensure dotfiles bin directory is loaded first
PATH=$HOME/.bin:$PATH
# Use local node modules
# when invoked from the root directory of a project.
PATH=./node_modules/.bin:$PATH
# Use local gem executables and bundler binstubs
# when invoked from the root directory of a project.
PATH=./bin:./.bundle/bin:$PATH
export PATH
export NODE_PATH=/usr/local/lib/node_modules
export NPM_TOKEN # Set this var in ~/.private
# Set the PostgreSQL database directory
export PGDATA=/usr/local/var/postgres
# Python commands executed before the first prompt in interactive mode
export PYTHONSTARTUP=~/.pythonrc.py
# Configure ruby-build to use Homebrew installed readline
# export RUBY_CONFIGURE_OPTS="--with-readline-dir=$(brew --prefix readline)"
# Since CDPATH is considered first it should begin with the current directory
# so that we can easily change to a subdirectory that also matches one of the
# subsequently listed frequented directories.
CDPATH='.:~:~/Code:~/Documents:~/Dropbox:~/Library:~/Sites:~/Workspaces'