-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.zshrc
48 lines (33 loc) · 1.28 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
# Oh My Zsh Start ##############################
export ZSH=$HOME/.oh-my-zsh
CASE_SENSITIVE="true"
HIST_STAMPS="yyyy-mm-dd"
plugins=(git history k)
source $ZSH/oh-my-zsh.sh
# Oh My Zsh End ################################
local ret_status="%(?:%{$fg_bold[green]%}>:%{$fg_bold[red]%}>)"
PROMPT='%B%T%b %{$fg[red]%}%n%{$reset_color%}@%{$fg[green]%}%m%{$reset_color%}:%{$fg[white]%}%~%{$reset_color%}$(git_prompt_info)$(git_remote_status) ${ret_status}%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg_bold[red]%}*"
ZSH_THEME_GIT_PROMPT_BEHIND_REMOTE=" %{$fg[yellow]%}B%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_AHEAD_REMOTE=" %{$fg[yellow]%}A%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIVERGED_REMOTE=" %{$fg_bold[red]%}D%{$reset_color%}"
export LANG="ru_RU.UTF-8"
export LC_ALL="ru_RU.UTF-8"
export PATH="$PATH:$HOME/.tools"
export EDITOR=vim
export PAGER=less
export LESS="-MQR"
umask 2
alias v="vim"
alias g='grep --color=auto'
alias irb='irb --readline -r irb/completion'
alias ll='ls -la --color=yes'
alias gh-pr-me='gh pr list --search "is:open is:pr review-requested:@me" --web'
alias gh-pr-my='gh pr list --author "@me" --web'
LOCAL="$HOME/.zshrc.local"
if [[ -f $LOCAL ]];
then
source $LOCAL
fi