forked from dewyze/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzshrc
More file actions
48 lines (36 loc) · 1.39 KB
/
Copy pathzshrc
File metadata and controls
48 lines (36 loc) · 1.39 KB
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
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
setopt prompt_subst
export LOCALE="en_US.UTF-8"
export LANG="en_US.UTF-8"
platform='unknown'
unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
platform='linux'
elif [[ "$unamestr" == 'FreeBSD' ]]; then
platform='freebsd'
fi
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export LS_COLORS="di=34:ln=35:so=32:pi=33:ex=31:bd=34:cd=34:su=0:sg=0:tw=0:ow=0:"
export GREP_OPTIONS='--color'
export EDITOR=vim
export LESS='XFR'
### Aliases
[[ -s "$HOME/.aliases_shared" ]] && . "$HOME/.aliases_shared"
[[ -s "$HOME/.zsh_aliases" ]] && . "$HOME/.zsh_aliases"
# Local Zsh Aliases
# You will probably have system-specific settings. Simply add them
# to ~/.zsh_aliases.local (which is not included with this repository).
if [ -f ~/.zsh_aliases.local ]; then
. ~/.zsh_aliases.local
fi
if [[ "$platform" == "osx" ]]; then
PROMPT='%{$fg_bold[green]%}%m: %{$fg_bold[magenta]%}[%{$(free)]%} %{$fg_bold[blue]%}%~%{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%} %#
→ '
else
PROMPT='%{$fg_bold[green]%}%m: %{$fg_bold[magenta]%}%{$fg_bold[blue]%}%~%{$fg_bold[green]%}$(git_prompt_info)%{$reset_color%} %#
→ '
fi
[[ -s "$HOME/.bin" ]] && export PATH=$HOME/.bin:$PATH
[[ -s "$HOME/.bin.local/" ]] && export PATH=$HOME/.bin:$PATH
[[ -s "$HOME/.zshrc.local" ]] && source "$HOME/.zshrc.local"