-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
57 lines (49 loc) · 1.46 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
zstyle ':completion:*' completer _complete _ignored _correct _approximate
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower]} r:|[._-]=* r:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=* r:|=* l:|=*' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' max-errors 2
zstyle ':completion:*' squeeze-slashes true
zstyle :compinstall filename '/Users/dkirk/.zshrc'
autoload -Uz compinit
compinit
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=10000
setopt appendhistory notify
unsetopt beep
bindkey -v
autoload -Uz promptinit
promptinit
prompt fade red
export EDITOR=/usr/local/bin/nvim
export PAGER='less -R'
export COPYFILE_DISABLE=1
alias ll='ls -Alh'
alias ls='ls -F'
alias df='df -h'
alias du='du -h'
alias dv='dirs -v'
alias shcl='shadow-cljs'
alias top='top -u'
alias vi=/usr/local/bin/nvim
umask 0027
ulimit -S -n 1024
if [[ ! -z $PS1 ]]; then
echo > /dev/null
else
SSH_ENV="$HOME/.ssh/environment"
function start_ssh_agent {
echo -n "Initialising new SSH agent..."
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV"
echo succeeded
chmod 0600 "$SSH_ENV"
source "$SSH_ENV" > /dev/null
/usr/bin/ssh-add $HOME/.ssh/coding-id
}
if [ -f "$SSH_ENV" ]; then
source "$SSH_ENV" > /dev/null
echo "checking for SSH agent pid $SSH_AGENT_PID..."
ps -ef | grep $SSH_AGENT_PID | grep ssh-agent$ > /dev/null || start_ssh_agent;
else
start_ssh_agent;
fi
fi