-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
33 lines (25 loc) · 778 Bytes
/
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
autoload -U compinit promptinit
compinit
promptinit
autoload -U colors && colors
# Git
source ~/.zsh/git-prompt/zshrc.sh # status in prompt
source ~/.git-completion.sh # autocomplete git command
# PROMPT='%B%m%~%b$(git_super_status) %# '
PROMPT='%{$fg[green]%}%n%{$reset_color%}%{$fg[red]%}@%{$reset_color%}%{$fg[blue]%}%m %{$fg[yellow]%}%1~%{$reset_color%}$(git_super_status) '
# RPROMPT="[%{$fg[yellow]%}%?%{$reset_color%}]"
# My alias
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ls='ls --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias s='sudo '
alias ss='s -s'
alias o='xdg-open'
alias archlinux='lynx www.archlinux.org'
alias pacman='pacman-color'
alias p='pacman'
alias y='yaourt'