-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_zshrc
55 lines (39 loc) · 1.16 KB
/
dot_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
##################################
# ZSH
##################################
export ZSH=/Users/muntasir/.oh-my-zsh
fpath+=("$(brew --prefix)/share/zsh/site-functions")
ZSH_THEME=""
UPDATE_ZSH_DAYS=30
DISABLE_UPDATE_PROMPT=true
source $ZSH/oh-my-zsh.sh
##################################
# Functions
##################################
function killport() { lsof -i TCP:$1 | grep LISTEN | awk '{print $2}' | xargs kill -9 }
##################################
# Key Bindings
##################################
bindkey '[C' forward-word # alt+left
bindkey '[D' backward-word # alt+right
##################################
# Plugins
##################################
[ -f ~/.zplug.sh ] && source ~/.zplug.sh
##################################
# Global
##################################
export EDITOR=nano
export VISUAL="$EDITOR"
export PATH="/usr/local/sbin:$PATH"
export PATH=$HOME/bin:/usr/local/bin:$PATH
export NODE_OPTIONS="--max-old-space-size=12288"
##################################
# Prompt
##################################
autoload -U promptinit; promptinit
prompt pure
##################################
# Alias
##################################
alias g='git'