-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
44 lines (34 loc) · 968 Bytes
/
.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
export PATH=$PATH:~/.vimpkg/bin
# export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export PATH=~/bin:$PATH
alias vi='mvim -v'
# ZSH History settings
export HISTFILE=~/.zsh_history
export HISTFILESIZE=4000
export HISTSIZE=4000
# setopt INC_APPEND_HISTORY
# setopt HIST_FIND_NO_DUPS
# setopt HIST_IGNORE_ALL_DUPS
setopt APPEND_HISTORY
# setopt SHARE_HISTORY
# Alias grep with rg
alias grep='rg'
alias ogrep='/usr/bin/grep -R'
# File search and content search
source ~/rc/.fopen_and_sopen
# Create and open PR
source ~/rc/.git_things
# With rubocop
function rubr() {
git diff HEAD --name-only| tr '\n' '\0'|xargs -0 find 2>/dev/null|xargs rubocop
}
# bundle
alias be='bundle exec'
# Docker aliases
alias dstop='docker stop $(docker ps -a -q)'
alias dstart='docker-compose up -d'
alias dps='docker ps'
# upstart rc
source ~/rc/.upstartrc
# Doesn't work
# alias gclean="!git branch --merged | grep -v '\\*\\|master\\|develop' | xargs -n 1 git branch -d"