Created
August 1, 2019 21:53
-
-
Save pkage/f4ee879371f4d4994a0d6f4e55209faa to your computer and use it in GitHub Desktop.
work dotfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# quality of life stuff | |
alias l="ls -AFG" | |
alias ll="ls -AFGhl" | |
alias res="cd ~/Repositories" | |
alias ..="cd .." | |
alias ...="cd ../.." | |
alias .="source" | |
# text editor setup | |
alias vi="nvim" | |
alias vim="nvim" | |
export EDITOR="nvim" | |
# git aliases | |
alias gB="git blame" | |
alias gC="git checkout" | |
alias gP="git push" | |
alias ga="git add" | |
alias gb="git branch" | |
alias gc="git commit" | |
alias gd="git diff" | |
alias gf="git fetch" | |
alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias gp="git pull" | |
alias gs="git status" | |
# make sure homebrew works | |
export PATH="$PATH:/usr/local/bin:$HOME/.local/bin" | |
export HOMEBREW_VERBOSE="true" | |
# CODEX specific setup | |
export CODEX_ROOT="/Users/kage/Repositories/CODEX/server" | |
# activate rust, .local | |
export PATH="$HOME/.cargo/bin:$PATH" | |
# prompt | |
autoload -Uz vcs_info # git | |
precmd() { vcs_info } | |
zstyle ':vcs_info:git:*' formats 'on branch %b' | |
setopt PROMPT_SUBST | |
PROMPT="%F{8}%? > %1~ Ⲗ%f%k " | |
RPROMPT="%F{8}\$vcs_info_msg_0_%f" | |
# >>> conda initialize >>> | |
# !! Contents within this block are managed by 'conda init' !! | |
__conda_setup="$('/Users/kage/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
if [ $? -eq 0 ]; then | |
eval "$__conda_setup" | |
else | |
if [ -f "/Users/kage/anaconda3/etc/profile.d/conda.sh" ]; then | |
. "/Users/kage/anaconda3/etc/profile.d/conda.sh" | |
else | |
export PATH="/Users/kage/anaconda3/bin:$PATH" | |
fi | |
fi | |
unset __conda_setup | |
# <<< conda initialize <<< | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'} | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'kien/ctrlp.vim' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'junegunn/vim-easy-align' | |
Plug 'airblade/vim-gitgutter' | |
Plug 'tpope/vim-fugitive' | |
Plug 'majutsushi/tagbar' | |
Plug 'leafgarland/typescript-vim' | |
Plug 'jceb/vim-orgmode' | |
Plug 'mkitt/tabline.vim' | |
Plug 'Konfekt/vim-scratchpad' | |
" editing | |
Plug 'w0rp/ale' | |
" langs | |
Plug 'mxw/vim-jsx' | |
Plug 'isruslan/vim-es6' | |
call plug#end() | |
let g:multi_cursor_start_word_key = '<C-b>' | |
let g:multi_cursor_select_all_word_key = '<A-b>' | |
let g:multi_cursor_start_key = 'g<C-b>' | |
let g:multi_cursor_select_all_key = 'g<A-b>' | |
let g:multi_cursor_next_key = '<C-b>' | |
let g:multi_cursor_prev_key = '<C-p>' | |
let g:multi_cursor_skip_key = '<C-x>' | |
let g:multi_cursor_quit_key = '<Esc>' | |
" Airline config | |
let g:airline_theme='lucius' | |
" ctrl-space/ctrl-p | |
"let g:CtrlSpaceDefaultMappingKey = "<C-space> " | |
"nnoremap <silent><C-p> :CtrlSpace O<CR> | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlPMixed' | |
let g:ctrlp_custom_ignore = '\v[\/](env_*|node_modules|\.(git|hg|svn))$' | |
" tagbar | |
nmap <F8> :TagbarToggle<CR> | |
" ale config | |
let g:ale_fix_on_save = 1 | |
let g:ale_lint_on_text_changed = 'normal' | |
au FileType python ALEDisable | |
" nerdtree config | |
nmap <C-n> :NERDTreeToggle<CR> | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
" easy align | |
" Start interactive EasyAlign in visual mode (e.g. vipga) | |
xmap ga <Plug>(EasyAlign) | |
" Start interactive EasyAlign for a motion/text object (e.g. gaip) | |
nmap ga <Plug>(EasyAlign) | |
" Tabs | |
hi TabLine ctermfg=Black ctermbg=Green cterm=NONE | |
hi TabLineFill ctermfg=Black ctermbg=Green cterm=NONE | |
hi TabLineSel ctermfg=White ctermbg=DarkBlue cterm=NONE | |
map <C-t><up> :tabr<cr> | |
map <C-t><down> :tabl<cr> | |
map <C-t><left> :tabp<cr> | |
map <C-t><right> :tabn<cr> | |
" general | |
set hidden | |
set nu | |
set expandtab | |
set shiftwidth=4 | |
set foldlevelstart=99 | |
set pastetoggle=<F2> | |
nnoremap <space> za | |
set foldmethod=syntax | |
nnoremap ; : | |
" Scratchpad? | |
" javascript config | |
augroup javascript_folding | |
au FileType javascript setlocal foldmethod=syntax | |
augroup END | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment