Skip to content

Commit

Permalink
Add rubocopdiff to zshrc; Ignore logs & vendor dirs for fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
ston1x committed Dec 5, 2023
1 parent a6344e9 commit eb5cb8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ set bg=dark
" Make left gutter bar not grey
autocmd ColorScheme * highlight! link SignColumn LineNr

" let g:neodark#background = '#202020'
" let g:neodark#terminal_transparent = 1
" let g:airline_theme='zenburn'
let g:gruvbox_contrast_dark='medium'
Expand Down
4 changes: 3 additions & 1 deletion .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ plugins=(
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=3'

source $ZSH/oh-my-zsh.sh
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!{node_modules/*,log/*,vendor/bundle/*,tmp/*,.git/*}"'
export FZF_CTRL_T_OPTS="--preview '(highlight -O ansi -l {} 2> /dev/null || cat {} || tree -C {}) 2> /dev/null | head -200'"
# export FZF_DEFAULT_COMMAND='rg --files ---hidden --follow -g "!.git" 2> /dev/null'

Expand Down Expand Up @@ -100,6 +100,8 @@ alias rr="bin/rails routes"
alias brc="bundle exec rubocop"
alias rdb="bin/rails db:"

alias rubocopdiff='git diff master --name-only --diff-filter=d | grep "\.rb" | xargs bundle exec rubocop --force-exclusion -A'

## git
alias gpf="git push fork $(current_branch)"
alias ggmsg="git commit -m"
Expand Down

0 comments on commit eb5cb8a

Please sign in to comment.