forked from chrishunt/dot-files
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
42 lines (33 loc) · 984 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
37
38
39
40
41
42
# Path to your oh-my-zsh configuration.
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="chris"
# Disable weekly update checks
DISABLE_AUTO_UPDATE="true"
# Disable auto-setting of terminal title
DISABLE_AUTO_TITLE="true"
# 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)
plugins=(git)
source $ZSH/oh-my-zsh.sh
# Disable auto-correct
unsetopt correct_all
# Load up rbenv?
eval "$(rbenv init -)"
# Load up ssh keys
ssh-add -A &> /dev/null
# Always work in a tmux session if tmux is installed
if which tmux 2>&1 >/dev/null; then
if [ $TERM != "screen-256color" ] && [ $TERM != "screen" ]; then
tmux attach -t hack || tmux new -s hack; exit
fi
fi