summaryrefslogtreecommitdiff
path: root/zshrc
blob: 41ae7aaace7e7d85bfde36e0ed54913f30778c1e (plain)
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
# :)
# ulimit -v 4194304 # 4G
# ulimit -u 1024

source $HOME/dotfiles/zgen/zgen.zsh
# check if there's no init script
if ! zgen saved; then
  echo "Creating a zgen save"
  zgen oh-my-zsh
  # plugins
  # zgen oh-my-zsh plugins/git
  zgen oh-my-zsh plugins/sudo
  zgen oh-my-zsh plugins/history
  zgen oh-my-zsh plugins/autojump
  zgen oh-my-zsh plugins/command-not-found
  zgen oh-my-zsh plugins/taskwarrior
  zgen load zsh-users/zsh-syntax-highlighting
  # completions
  zgen load zsh-users/zsh-completions src
  # theme
  # zgen oh-my-zsh themes/frisk
  zgen load ehamberg/pure
  # save all to init script
  zgen save
fi

setopt extendedglob
LANG=en_US.UTF-8
HISTSIZE=1000000
SAVEHIST=1000000

if (( $+commands[ack-grep] )) ; then
  alias ack=ack-grep
fi

# Emacs-like editor
bindkey -e
export WORDCHARS=''

# Dvorak
setopt DVORAK

# alias ls="ls --color"
if which gvim >/dev/null; then
  alias vi="gvim --remote"
fi
alias ff="fileutil --gfs_user=gfp-reporting"
alias diff=colordiff

if [[ -f  $HOME/.zshrc.local ]]; then
    source $HOME/.zshrc.local
fi

export EDITOR=vim
export PAGER=less
export TZ='America/New_York'

# allow editing of command line
autoload -U edit-command-line
zle -N edit-command-line
bindkey "^V" edit-command-line