-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
executable file
·59 lines (48 loc) · 1.11 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
set_path () {
orig_path=$PATH
PATH="$HOME/.bin"
PATH="$PATH:/usr/local/bin:/usr/local/sbin"
PATH="$PATH:/usr/local/opt/mysql-client/bin"
PATH="$PATH:$orig_path"
export PATH
}
set_path
set_prompt () {
autoload -U colors && colors
newline=$'\n'
current_time="%D{%H:%M:%S}"
user_at_host="$fg[green]%n$reset_color@$fg[cyan]%m$reset_color"
ppwd="$fg[magenta]%~$reset_color"
separator=$newline
PROMPT="$current_time $user_at_host:$ppwd $separator$ "
export PROMPT
}
set_prompt
setup-ssh() {
ssh-add -q --apple-use-keychain "$HOME/.ssh/id_rsa"
ssh-add -q --apple-use-keychain "$HOME/.ssh/pco_servers"
}
setup-ssh
###########
# aliases #
###########
# Command/Application aliases
alias ..="cd .."
alias ...="cd ../.."
alias la="ls -A"
alias ll="ls -lAGh"
alias vi="vim"
alias vim="nvim"
############
# finalize #
############
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
# use emacs key bindings
bindkey -e
export EDITOR="vi"
export LESS="-M"
export SAM_CLI_TELEMETRY=0
export CHECKPOINT_DISABLE=1
export NODE_PATH="$NODE_PATH:/usr/local/lib/node_modules"
eval "$($HOME/Code/pco/bin/pco init -)"