forked from pfleidi/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
85 lines (61 loc) · 2.06 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
# options below can be overridden in ~/.zshrc.local
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
# Set to the name theme to load.
# Look in ~/.oh-my-zsh/themes/
export ZSH_THEME="amuse"
# Set to this to use case-sensitive completion
export CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
export DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# export DISABLE_LS_COLORS="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
plugins=(dirpersist git npm rvm ruby gem zsh-syntax-highlighting ssh-agent screen docker mosh)
# Locale settings (utf-8)
export LC_CTYPE=de_DE.UTF-8
export LANG=de_DE.UTF-8
# load ~/.zshrc.local
[[ -s $HOME/.zshrc.local ]] && source "$HOME/.zshrc.local"
# load rvm
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
# load oh-my-zsh
source $ZSH/oh-my-zsh.sh
# ============== Custom tweaks below this line ==============
# Aliases
source $HOME/.zsh/aliases.zsh
# Key Bindings
source $HOME/.zsh/keybindings.zsh
#History Settings
HISTFILE=~/.zsh_history
HISTSIZE=100000
SAVEHIST=$HISTSIZE
# completion cache
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path ~/.zsh/cache
# ignore duplicate entries
setopt hist_ignore_all_dups
setopt hist_ignore_space
# Load ENV Variables
export EDITOR=vim
export PAGER=less
# Put custom $PATH settings into ~/.zprofile or ~/.zshrc.local
export PATH=$PATH:$HOME/.bin/
#077 would be more secure, but 022 is generally quite realistic
umask 022
#Auto Escape URLS
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
# SSH Stuff
if [ -r $HOME/.ssh/config ]; then
hosts=(`cat $HOME/.ssh/config | egrep '^Host.*' | sed "s/^Host[ ]*\(.*\)$/\1/"`)
fi
if [ -r /etc/hosts ]; then
hosts=( $hosts $(cat /etc/hosts | grep -v '^\#' | awk '{print $2}') )
fi
zstyle '*' hosts $hosts
#zstyle ':completion:*:*:*:*:*' menu complete
# show fortune cookie
type fortune &>/dev/null && fortune -a
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
# EOF