-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
36 lines (28 loc) · 893 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
34
35
36
# Lines configured by zsh-newuser-install
setopt autocd extendedglob nomatch
# End of lines configured by zsh-newuser-install
# Share history
setopt hist_ignore_dups share_history inc_append_history extended_history
# Colorize stuff
autoload -U colors && colors
PROMPT="%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[cyan]%}%m %{$fg[red]%}%1~ %{$reset_color%}%# "
export CLICOLOR="YES"
if [[ $(uname) == 'Linux' ]] ; then
alias ls='ls -lh --group-directories-first --color=auto'
else
alias ls='ls -lGh'
fi
alias df='df -h'
alias mkdir='mkdir -p'
alias today='date +%Y.%m.%d'
export TERM='xterm-256color'
if [ -x `which emacs` ] ; then
export EDITOR=`which emacs`
fi
# ctrl-left ctrl-right word zooms
bindkey '^[[D' emacs-backward-word
bindkey '^[[C' emacs-forward-word
# home, end, deletes
bindkey '^[[3~' delete-char
bindkey '^[[1~' beginning-of-line
bindkey '^[[4~' end-of-line