forked from syl20bnr/config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
60 lines (54 loc) · 1.77 KB
/
.zshrc
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
ZSH=$HOME/.oh-my-zsh
# ----------------------------------------------------------------------------
# Prompt
# ----------------------------------------------------------------------------
if [[ $EMACS == "" ]]; then
# regular mode
ZSH_THEME="syl20bnr"
plugins=(git vi-mode)
else
# runs inside an emacs process
ZSH_THEME="robbyrussell"
chpwd() { print -P "\033AnSiTc %d" }
print -P "\033AnSiTu %n"
print -P "\033AnSiTc %d"
fi
# ----------------------------------------------------------------------------
# Environment
# ----------------------------------------------------------------------------
export PATH=\
~/.rbenv/shims:\
~/.rbenv/bin:\
~/.config/powerlinerepo/scripts:\
/usr/lib/lightdm/lightdm:\
/usr/local/sbin:\
/usr/local/bin:\
/usr/sbin:/usr/bin:\
/sbin:/bin:/usr/games
export [email protected]
export EDITOR=vi
if [[ -z "$TMUX" ]]; then
export TERM=xterm-256color
fi
# ----------------------------------------------------------------------------
# oh my zsh settings
# ----------------------------------------------------------------------------
source $ZSH/oh-my-zsh.sh
# red dots while waiting for completion
COMPLETION_WAITING_DOTS="true"
# case-sensitive completion
CASE_SENSITIVE="true"
# wait before auto-updates occur
export UPDATE_ZSH_DAYS=31
# ----------------------------------------------------------------------------
# aliases
# ----------------------------------------------------------------------------
alias noproxy='http_proxy= HTTP_PROXY= https_proxy= HTTPS_PROXY='
alias np='noproxy'
# ----------------------------------------------------------------------------
# Ranger auto launch
# ----------------------------------------------------------------------------
#if [[ $RANGER == "" ]]; then
# export RANGER=1
# ranger "`pwd`"
#fi