-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
37 lines (27 loc) · 1.04 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
# source zplug
source ~/.zplug/init.zsh
# zplug packages
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug 'themes/blinks', from:oh-my-zsh
zplug check --verbose || zplug install
zplug load
# homebrew : brew installed python
export PATH=/usr/local/bin:/usr/local/share/python:$PATH
# enable chruby and auto switching to .ruby-version
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
# alias tmux to use vim colorscheme instead of iTerm2
alias tmux="TERM=screen-256color-bce tmux"
alias ll="ls -Gal"
# cli-improved suggested tools see: https://remysharp.com/2018/08/23/cli-improved
alias cat='bat'
alias ping='prettyping --nolegend'
alias top="sudo htop" # alias top and fix high sierra bug
alias du="ncdu --color dark -rr -x --exclude .git --exclude node_modules"
alias help='tldr'
# file directory list with display
alias preview="fzf --preview 'bat --color \"always\" {}'"
# import .fzf key bindings
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# Add $HOME/bin to path for custom bash scripts
export PATH=$PATH:$HOME/bin