Things
This commit is contained in:
parent
060625079d
commit
4eb3b1cbc9
|
@ -28,3 +28,6 @@
|
||||||
!.gradle/gradle.properties
|
!.gradle/gradle.properties
|
||||||
|
|
||||||
!iterm2_settings/*
|
!iterm2_settings/*
|
||||||
|
|
||||||
|
!.config/fish/config.fish
|
||||||
|
!.config/fish/conf.d/omf.fish
|
||||||
|
|
6
.vimrc
6
.vimrc
|
@ -58,6 +58,7 @@ set sidescrolloff=5
|
||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
set cursorline
|
set cursorline
|
||||||
|
set splitbelow splitright
|
||||||
|
|
||||||
let g:mapleader=","
|
let g:mapleader=","
|
||||||
let g:mix_format_on_save = 1
|
let g:mix_format_on_save = 1
|
||||||
|
@ -173,6 +174,7 @@ nmap <silent> ]g <Plug>(coc-diagnostic-next)
|
||||||
|
|
||||||
" Remap keys for gotos
|
" Remap keys for gotos
|
||||||
nmap <silent> <C-]> <Plug>(coc-definition)
|
nmap <silent> <C-]> <Plug>(coc-definition)
|
||||||
|
nmap <silent> <C-w><C-]> <C-w>s<C-]>
|
||||||
nmap <silent> gy <Plug>(coc-type-definition)
|
nmap <silent> gy <Plug>(coc-type-definition)
|
||||||
nmap <silent> gi <Plug>(coc-implementation)
|
nmap <silent> gi <Plug>(coc-implementation)
|
||||||
nmap <silent> gr <Plug>(coc-references)
|
nmap <silent> gr <Plug>(coc-references)
|
||||||
|
@ -222,8 +224,8 @@ omap if <Plug>(coc-funcobj-i)
|
||||||
omap af <Plug>(coc-funcobj-a)
|
omap af <Plug>(coc-funcobj-a)
|
||||||
|
|
||||||
" Use <C-d> for select selections ranges, needs server support, like: coc-tsserver, coc-python
|
" Use <C-d> for select selections ranges, needs server support, like: coc-tsserver, coc-python
|
||||||
nmap <silent> <C-d> <Plug>(coc-range-select)
|
" nmap <silent> <C-d> <Plug>(coc-range-select)
|
||||||
xmap <silent> <C-d> <Plug>(coc-range-select)
|
" xmap <silent> <C-d> <Plug>(coc-range-select)
|
||||||
|
|
||||||
" Use `:Format` to format current buffer
|
" Use `:Format` to format current buffer
|
||||||
command! -nargs=0 Format :call CocAction('format')
|
command! -nargs=0 Format :call CocAction('format')
|
||||||
|
|
22
.zshrc
22
.zshrc
|
@ -17,13 +17,11 @@ alias fuck='$(thefuck $(fc -ln -1))'
|
||||||
|
|
||||||
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
|
alias subl="/Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl"
|
||||||
|
|
||||||
alias git=hub
|
|
||||||
|
|
||||||
alias python=python3
|
alias python=python3
|
||||||
alias pip=pip3
|
alias pip=pip3
|
||||||
|
|
||||||
alias oldruby="/usr/bin/ruby"
|
# alias oldruby="/usr/bin/ruby"
|
||||||
alias ruby="/usr/local/opt/ruby/bin/ruby"
|
# alias ruby="/usr/local/opt/ruby/bin/ruby"
|
||||||
|
|
||||||
# Erlang/Elixir persistent shell history
|
# Erlang/Elixir persistent shell history
|
||||||
export ERL_AFLAGS="-kernel shell_history enabled"
|
export ERL_AFLAGS="-kernel shell_history enabled"
|
||||||
|
@ -68,6 +66,12 @@ export ERL_AFLAGS="-kernel shell_history enabled"
|
||||||
# yarn "$@"
|
# yarn "$@"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
export NODE_OPTIONS="--max-old-space-size=8000"
|
||||||
|
|
||||||
|
# Ruby
|
||||||
|
export PATH="$HOME/.rbenv/bin:$PATH"
|
||||||
|
eval "$(rbenv init -)"
|
||||||
|
|
||||||
# Go up N directories
|
# Go up N directories
|
||||||
up() {
|
up() {
|
||||||
str=""
|
str=""
|
||||||
|
@ -107,6 +111,16 @@ ca() {
|
||||||
git commit --amend "$@"
|
git commit --amend "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# pbedit: interactively edit the contents of the clipboard
|
||||||
|
pbedit() {
|
||||||
|
tmpfile=`mktemp /tmp/pbedit.XXXXX`
|
||||||
|
pbpaste > $tmpfile
|
||||||
|
if vim -c "set nofixeol" $tmpfile ; then
|
||||||
|
pbcopy < $tmpfile
|
||||||
|
fi
|
||||||
|
rm $tmpfile
|
||||||
|
}
|
||||||
|
|
||||||
# default file openings
|
# default file openings
|
||||||
alias -s ipr=open
|
alias -s ipr=open
|
||||||
alias -s xcodeproj=open
|
alias -s xcodeproj=open
|
||||||
|
|
Loading…
Reference in New Issue