-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
46 lines (36 loc) · 1.38 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
# Author - Brian Z.
# source bashrc if exists
[ -s "$HOME/.bashrc" ] && . "$HOME/.bashrc" 2> "/dev/null"
autoload -U add-zsh-hook colors select-word-style
# tell terminal about current working directory.
# important for resume support in Apple Terminal
# NOTE - this is currently broken for paths with spaces
#add-zsh-hook chpwd update_terminal_cwd
#update_terminal_cwd
colors
# bash-style word functions
select-word-style bash
# prompt expansion
# TODO - refactor all this shit
export HOME="/Users/brian"
. "$HOME/.zsh/prompt.zsh"
# TODO - add (time)(job#1)(job#2)
#export PROMPT="
#(%(!.%{$fg[red]%}.%{$fg[green]%})%n%{$reset_color%}@%{$fg[yellow]%}%m%{$reset_color%})(%{$fg[white]%}%80<...<%~%{$reset_color%})$(git_dirty)
#(%{$fg[blue]%}%t%{$reset_color%})%(!.%{$fg_bold[red]%}#.%{$fg_bold[green]%}$) %{$reset_color%}"
# enable shift-tab
bindkey "^[[Z" reverse-menu-complete
# NOTE - temporary solution to be refactored
[ -s "$HOME/.zsh/functions.zsh" ] && . "$HOME/.zsh/functions.zsh"
[ -s "$HOME/.zsh/termsupport.zsh" ] && . "$HOME/.zsh/termsupport.zsh"
#-------------------------------------------------------------------------------
# configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd beep extendedglob nomatch notify
bindkey -e
# added by compinstall
zstyle :compinstall filename '/Users/brian/.zshrc'
autoload -Uz compinit
compinit