-
Notifications
You must be signed in to change notification settings - Fork 4
/
.zshrc
131 lines (110 loc) · 4.26 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
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# Path to your oh-my-zsh installation.
export ZSH=${HOME}/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
# dircycle C-S-left for popd/pushd
# dirhistory cd opt-left for cd
# git-extras
# Command Description
# git changelog [-l/--list] populate changelog file with commits since the previous tag
# git contrib display author contributions
# git count [--all] count commits
# git delete-branch delete local and remote branch
# git delete-submodule delete submodule
# git delete-tag delete local and remote tag
# git extras [-v/--version] # git-extras
# git graft merge commits from source branch to destination branch
# git squash merge commits from source branch into the current one as a single commit
# git feature [finish] create a feature branch
# git refactor [finish] create a refactor branch
# git bug [finish] create a bug branch
# git summary repository summary
# git effort [--above] display effort statistics
# git repl read-eval-print-loop
# git commits-since list commits since a given date
# git release release commit with the given tag
# git alias define, search and show aliases
# git ignore add patterns to .# gitignore
# git info show info about the repository
# git create-branch create local and remote branch
# git fresh-branch create empty local branch
# git undo remove the latest commit
# git setup setup a # git repository
# git touch one step creation of new files
# git obliterate Completely remove a file from the repository, including past commits and tags
# git local-commits list unpushed commits on the local branch
#
# wd bookmarks dirs
plugins=(git brew dircycle dirhistory git-extras wd mvn meteor)
# 0. user variables
custom="${HOME}/.zsh.my.sh"
if [[ -f "$custom" ]]; then
source "$custom"
fi
# 1. oh-my-zsh
source $ZSH/oh-my-zsh.sh
### My .zsh variables
MY_DOT_ZSH="${HOME}/.zsh/"
# 2. basic variable assignments
for module in alias init func; do
source "${MY_DOT_ZSH}/${module}.rc.sh"
done
# 4. plugins
# my own modules
# Currently available: python java
for module in $my_zsh_mod; do
source "${MY_DOT_ZSH}/plugins/${module}.rc.sh"
done
# 5. check and update
for repo in $HOME_GIT_REPOS; do
MY_GIT_REPOS+=("${HOME}/$repo")
done
for plugin in "$ZSH"/custom/plugins/*; do
MY_GIT_REPOS+=("$plugin")
done
check-update
# avoid Emacs Tramp hangs on waiting correct prompt
if [[ "$TERM" == "dumb" ]]
then
unsetopt zle
unsetopt prompt_cr
unsetopt prompt_subst
unfunction precmd
unfunction preexec
PS1='$ '
fi
autoload -U compinit && compinit