this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Initial merge commit from work dotfiles

+179 -291
+16
.bashrc
··· 1 + # Source global definitions 2 + if [ -f /etc/bashrc ]; then 3 + . /etc/bashrc 4 + fi 5 + 1 6 os_name="$(uname)" 2 7 if [[ $os_name == "Darwin" ]]; then 3 8 MAC_OS=true 4 9 else 5 10 MAC_OS=false 6 11 fi 12 + 13 + umask 0002 7 14 8 15 # alias various commands 9 16 if [ -r $HOME/.bashrc.aliases ]; then ··· 84 91 export NVM_DIR="$HOME/.nvm" 85 92 [ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh" # This loads nvm 86 93 [ -s "$NVM_DIR/bash_completion" ] && source "$NVM_DIR/bash_completion" # This loads nvm bash_completion 94 + # 95 + if [ -f $HOME/bin/git-completion.bash ]; then 96 + source $HOME/bin/git-completion.bash 97 + fi 98 + # 99 + if [ -f $HOME/bin/git-prompt.sh ]; then 100 + source $HOME/bin/git-prompt.sh 101 + PS1=${DOCKER_NAME:+(${DOCKER_NAME})}'[\u@\h \W$(__git_ps1 " (%s)")]\$ ' 102 + fi
+9 -4
.bashrc.aliases
··· 133 133 else 134 134 if [[ $# -eq 1 && $@ != *@* ]]; then 135 135 command ssh -t "$@" \ 136 - "if [ -d \"$(pwd)\" ]; then 137 - cd \"$(pwd)\" 138 - fi 139 - bash -l" 136 + "bash -c \ 137 + 'if [ -d \"$(pwd)\" ]; then 138 + cd \"$(pwd)\" 139 + fi 140 + exec \$SHELL -l'" 140 141 else 141 142 command ssh "$@" 142 143 fi 143 144 fi 144 145 } 146 + 147 + function bazel() { 148 + command bazelisk "$@" 149 + }
+1 -8
.bazelrc
··· 1 - # set up environment variables for pyenv to work properly 2 - build --action_env=PATH 3 - build --distinct_host_configuration=false 4 - build --action_env=PYENV_VERSION=3.6.5:2.7.15 5 - 6 1 # remote caching in the lab 7 2 # build --remote_http_cache=http://172.20.6.206:9090 8 3 # build --remote_timeout=5 9 4 10 - # and make sure tests run with proper pyenv versions as well 11 - test --test_env=PYENV_VERSION=3.6.5:2.7.15 12 - # test --test_arg=-vvv 5 + clean --async
+13 -14
.config/fish/config.fish
··· 1 - command -q thefuck 2 - and thefuck --alias f | source 1 + if not set -q DOCKER_NAME; and test -f /etc/profile.d/docker_name.sh 2 + set -gx DOCKER_NAME (sed -E 's/.*DOCKER_NAME=(.+)/\1/' /etc/profile.d/docker_name.sh) 3 + end 3 4 4 - status --is-interactive 5 - and command -q pyenv 6 - and pyenv init - | source 7 - status --is-interactive 8 - and command -q pyenv-virtualenv 9 - and pyenv-virtualenv-init - | source 5 + if status is-interactive; and status is-login 6 + command -sq thefuck; and source (thefuck --alias | psub) 10 7 11 - # Set here instead of in fish_variables to expand $HOME per-machine 12 - set -U fish_user_paths 8 + if command -qs pyenv 9 + source (pyenv init - | psub) 10 + source (pyenv virtualenv-init - | psub) 11 + end 12 + end 13 13 14 - command -q npm 15 - and set -Ua fish_user_paths (npm bin) 16 - 17 - set -Ua fish_user_paths ~/.cargo/bin ~/.pyenv/shims /usr/local/Cellar/pyenv-virtualenv/*/shims 14 + # Used to ensure Docker cache hits on dev VM 15 + umask 0002 18 16 17 + source ~/.config/fish/iterm2_shell_integration.fish
+1 -1
.config/fish/fishfile
··· 1 - 1 + jorgebucaran/fish-nvm
+2 -2
.config/fish/functions/fish_prompt.fish
··· 1 - # Defined in /Users/ichamberlain/.config/fish/functions/fish_prompt.fish @ line 2 1 + # Defined in /var/folders/4w/bjgmcfds1nv33zqkhf2q2_340000gp/T//fish.jInzkm/fish_prompt.fish @ line 2 2 2 function fish_prompt --description 'Write out the prompt' 3 3 set -l last_status $status 4 4 ··· 44 44 45 45 set first_line ( 46 46 echo -n -s "$__fish_prompt_docker" "$__fish_prompt_pyenv" \ 47 - '[' "$USER" '@' (prompt_hostname) ']' \ 47 + '[' "$USER" '@' (hostname -s) ']' \ 48 48 ' ' "$__fish_prompt_cwd" (prompt_pwd) 49 49 ) 50 50
+10 -5
.config/fish/functions/fisher.fish
··· 1 - set -g fisher_version 3.2.9 1 + set -g fisher_version 3.2.10 2 2 3 3 function fisher -a cmd -d "fish package manager" 4 4 set -q XDG_CACHE_HOME; or set XDG_CACHE_HOME ~/.cache ··· 9 9 set -g fisher_config $XDG_CONFIG_HOME/fisher 10 10 11 11 set -q fisher_path; or set -g fisher_path $fish_config 12 + set -g fishfile $fish_config/fishfile 12 13 13 14 for path in {$fish_config,$fisher_path}/{functions,completions,conf.d} $fisher_cache 14 15 if test ! -d $path ··· 37 38 end 38 39 end 39 40 41 + # 2019-10-22: temp code, migrates fishfile from old path back to $fish_config 42 + if test -e "$fisher_path/fishfile"; and test ! -e "$fishfile" 43 + command mv -f "$fisher_path/fishfile" "$fishfile" 44 + end 45 + 40 46 switch "$cmd" 41 47 case {,self-}complete 42 48 _fisher_complete ··· 44 50 _fisher_copy_user_key_bindings 45 51 case ls 46 52 set -e argv[1] 47 - if test -s "$fisher_path/fishfile" 48 - set -l file (_fisher_fmt <$fisher_path/fishfile | _fisher_parse -R | command sed "s|@.*||") 53 + if test -s "$fishfile" 54 + set -l file (_fisher_fmt <$fishfile | _fisher_parse -R | command sed "s|@.*||") 49 55 _fisher_ls | _fisher_fmt | command awk -v FILE="$file" " 50 56 BEGIN { for (n = split(FILE, f); ++i <= n;) file[f[i]] } \$0 in file && /$argv[1]/ 51 57 " | command sed "s|^$HOME|~|" ··· 165 171 _fisher_rm $pkg 166 172 end 167 173 168 - for file in $fisher_cache $fisher_config $fisher_path/{functions,completions,conf.d}/fisher.fish $fisher_path/fishfile 174 + for file in $fisher_cache $fisher_config $fisher_path/{functions,completions,conf.d}/fisher.fish $fishfile 169 175 echo "removing $file" 170 176 command rm -Rf $file 2>/dev/null 171 177 end | command sed "s|$HOME|~|" >&2 ··· 181 187 function _fisher_commit -a cmd 182 188 set -e argv[1] 183 189 set -l elapsed (_fisher_now) 184 - set -l fishfile $fisher_path/fishfile 185 190 186 191 if test ! -e "$fishfile" 187 192 command touch $fishfile
+8 -3
.config/fish/functions/ls.fish
··· 1 - # Defined in /var/folders/m7/71tzq4yx5k91dcjhnhj57_880000gn/T//fish.xA4yA5/ls.fish @ line 2 2 - function ls --description 'List contents of directory' 3 - command ls -G -la $argv 1 + # Defined in /Users/ichamberlain/.config/fish/functions/ls.fish @ line 2 2 + function ls --description 'List contents of directory, including hidden files in directory using long format' 3 + if test (uname) = "Darwin" 4 + set ls_args "-G" 5 + else 6 + set ls_args "--color=auto" 7 + end 8 + command ls -Flah $ls_args $argv 4 9 end
+1 -1
.config/fish/functions/py.fish
··· 1 - # Defined in - @ line 1 1 + # Defined in /Users/ichamberlain/.config/fish/functions/py.fish @ line 2 2 2 function py --description 'alias py=bpython' 3 3 bpython $argv; 4 4 end
+3 -1
.config/yadm/bootstrap
··· 53 53 } 54 54 55 55 function main() { 56 + yadm submodule update --init 57 + 56 58 if [[ "$OS_NAME" == "Darwin" ]]; then 57 59 setup_macos 58 60 elif [[ "$OS_NAME" == "Linux" ]]; then ··· 60 62 fi 61 63 } 62 64 63 - main 65 + main
+1 -51
.emacs.d/.gitignore
··· 1 - # -*- mode: gitignore; -*- 2 - 3 - # Taken from https://github.com/github/gitignore/blob/master/Global/Emacs.gitignore 4 - *~ 5 - \#*\# 6 - /.emacs.desktop 7 - /.emacs.desktop.lock 8 - *.elc 9 - auto-save-list 10 - tramp 11 - .\#* 12 - 13 - # Org-mode 14 - .org-id-locations 15 - *_archive 16 - 17 - # flymake-mode 18 - *_flymake.* 19 - 20 - # eshell files 21 - /eshell/history 22 - /eshell/lastdir 23 - 24 - # elpa packages 25 - /elpa/ 26 - 27 - # reftex files 28 - *.rel 29 - 30 - # AUCTeX auto folder 31 - /auto/ 32 - 33 - # cask packages 34 - .cask/ 35 - dist/ 36 - 37 - # Flycheck 38 - flycheck_*.el 39 - 40 - # server auth directory 41 - /server/ 42 - 43 - # projectiles files 44 - .projectile 45 - 46 - # directory configuration 47 - .dir-locals.el 48 - 49 - # network security 50 - /network-security.data 51 - 1 + auto-save-list/
+21 -101
.emacs.d/init.el
··· 11 11 ;; (add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t) 12 12 ;; Comment/uncomment this line to enable MELPA Stable if desired. See `package-archive-priorities` 13 13 ;; and `package-pinned-packages`. Most users will not need or want to do this. 14 - (add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)) 14 + (add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t) 15 + ) 15 16 16 17 ;; Added by Package.el. This must come before configurations of 17 18 ;; installed packages. Don't delete this line. If you don't want it, ··· 24 25 ;; If you edit it by hand, you could mess it up, so be careful. 25 26 ;; Your init file should contain only one such instance. 26 27 ;; If there is more than one, they won't work right. 27 - '(evil-vsplit-window-right t) 28 - '(hl-todo-color-background t) 29 - '(hl-todo-keyword-faces 30 - (quote 31 - (("TODO" . "#FFEB3B") 32 - ("NOTE" . "#FFEB3B") 33 - ("FIXME" . "#FFEB3B")))) 34 - '(inhibit-startup-screen t) 35 - '(org-agenda-custom-commands 36 - (quote 37 - (("n" "Agenda and all TODOs" 38 - ((agenda "" nil) 39 - (alltodo "" nil)) 40 - nil) 41 - ("w" "Weekend Agenda and TODOs" agenda "" 42 - ((org-agenda-overriding-header "WEEKEND") 43 - (org-agenda-span 44 - (quote 2)) 45 - (org-agenda-start-day "saturday") 46 - (org-read-date-prefer-future nil))) 47 - ("3" "3-day Agenda and TODOs" agenda "" 48 - ((org-agenda-overriding-header "3 DAY VIEW") 49 - (org-agenda-span 50 - (quote 3)) 51 - (org-agenda-start-day "today")))))) 52 - '(org-agenda-files (quote ("~/Documents/notes/"))) 53 - '(org-agenda-restore-windows-after-quit t) 54 - '(org-agenda-todo-list-sublevels t) 55 - '(org-agenda-window-setup (quote current-window)) 56 - '(org-indirect-buffer-display (quote current-window)) 28 + '(fill-column 88) 57 29 '(org-todo-keywords (quote ((sequence "TODO" "PROG" "DONE")))) 58 - '(org-use-property-inheritance (quote ("DEADLINE" "SCHEDULED"))) 59 30 '(package-selected-packages 60 31 (quote 61 32 (hl-todo evil-collection monokai-theme evil-org evil ##))) 62 - '(show-paren-mode t) 63 33 '(split-height-threshold nil)) 64 34 (custom-set-faces 65 35 ;; custom-set-faces was added by Custom. ··· 75 45 ;; ---------------------------------------------------------------------- 76 46 ;; Package/Theme configuration 77 47 ;; ---------------------------------------------------------------------- 78 - ;; Directory for non-package (require) calls 79 - (add-to-list 'load-path "~/.emacs.d/lisp/") 80 - 81 48 (require 'evil) 82 49 (evil-mode 1) 83 50 84 - ;; TODO: evil-collection bindings for customize-mode 51 + ;; TODO: bindings for customize-mode 52 + 85 53 ;; (when (require 'evil-collection nil t) 86 54 ;; (evil-collection-init)) 87 55 ··· 92 60 (require 'evil-org-agenda) 93 61 (evil-org-agenda-set-keys) 94 62 95 - (require 'evil-adjust) 96 - (evil-adjust) 97 - 98 63 (load-theme 'monokai t) 99 64 100 65 (global-hl-todo-mode) 66 + (setq hl-todo-color-background t) 67 + (setq hl-todo-keyword-faces 68 + '(("TODO" . "#FFEB3B") 69 + ("NOTE" . "#FFEB3B") 70 + ("FIXME" . "#FFEB3B"))) 101 71 102 72 ;; ---------------------------------------------------------------------- 103 73 ;; Custom functions 104 74 ;; ---------------------------------------------------------------------- 105 - (defun quit-window-and-buffer () 106 - "Quit the window, killing its buffer if it was the last window 107 - displaying that buffer." 108 - (interactive) 109 - (setq curbuf (current-buffer)) 110 - (setq curwindow (get-buffer-window curbuf)) 111 - 112 - (if (eq curwindow (next-window nil nil "visible")) 113 - (kill-buffer) 114 - (delete-window) 115 - (unless (get-buffer-window curbuf) (kill-buffer curbuf))) 116 - ) 117 - 118 - (defun minibuffer-keyboard-quit () 119 - "Abort recursive edit. 120 - In Delete Selection mode, if the mark is active, just deactivate it; 121 - then it takes a second \\[keyboard-quit] to abort the minibuffer." 75 + (defun kill-other-buffers () 76 + "Kill all other buffers." 122 77 (interactive) 123 - (if (and delete-selection-mode transient-mark-mode mark-active) 124 - (setq deactivate-mark t) 125 - (when (get-buffer "*Completions*") (delete-windows-on "*Completions*")) 126 - (abort-recursive-edit))) 78 + (mapc 'kill-buffer (delq (current-buffer) (buffer-list)))) 127 79 128 - ;; ---------------------------------------------------------------------- 129 - ;; Key bindings 130 - ;; ---------------------------------------------------------------------- 131 - (global-set-key (kbd "s-c") 'evil-yank) 132 - 133 - ;; TODO figure out commenting keybinds 134 - (global-set-key (kbd "s-/") 'comment-line) 135 - 136 - (global-set-key (kbd "C-c a") 'org-agenda) 137 - ;; TODO: keybind for org-mode directory? 138 - ;; (global-set-key (kbd "???") '???) 139 - 140 - (global-set-key (kbd "s-\\") 'evil-window-vsplit) 141 - (global-set-key (kbd "s-|") 'evil-window-split) 142 - 143 - (global-set-key (kbd "<s-mouse-1>") (kbd "<mouse-1>")) 144 - 145 - ;; window movement 146 - (global-set-key (kbd "<M-s-right>") 'windmove-right) 147 - (global-set-key (kbd "<M-s-left>") 'windmove-left) 148 - (global-set-key (kbd "<M-s-down>") 'windmove-down) 149 - (global-set-key (kbd "<M-s-up>") 'windmove-up) 150 80 151 81 ;; ---------------------------------------------------------------------- 152 82 ;; Startup configuration 153 83 ;; ---------------------------------------------------------------------- 154 - (setq-default indent-tabs-mode nil) 155 - 156 - (desktop-save-mode 1) 157 - (setq-default desktop-save t) 158 - 159 84 (global-display-line-numbers-mode) 160 85 161 - ;; Should no longer be needed due to desktop-save-mode 162 - ;; (add-to-list 'default-frame-alist '(width . 0.5)) 163 - ;; (add-to-list 'default-frame-alist '(height . 1.0)) 86 + (setq default-frame-alist 87 + '((width . 0.5) (height . 1.0))) 164 88 165 - ;; Make `:q` not kill the entire process 166 - (evil-ex-define-cmd "q" 'quit-window-and-buffer) 89 + ;; Make `:q` not kill the entier process 90 + ;; TODO: open scratch buffer if this is the "sole remaining window" 91 + ;; Also make `:wq` do the same thing 92 + (evil-ex-define-cmd "q" 'kill-buffer-and-window) 167 93 168 94 ;; Typing out `:quit` will still quit emacs 169 95 (evil-ex-define-cmd "quit" 'evil-quit) 170 96 171 - ;; Make <esc> quit from minibuffer, etc. 172 - (define-key evil-normal-state-map [escape] 'keyboard-quit) 173 - (define-key evil-visual-state-map [escape] 'keyboard-quit) 174 - (define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit) 175 - (define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit) 176 - (define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit) 177 - (define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit) 178 - (define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) 97 + ;; Start with a scratch buffer 98 + (setq inhibit-startup-screen t)
+32 -20
.gitconfig
··· 1 1 [user] 2 2 name = Ian Chamberlain 3 - email = ian.h.chamberlain@gmail.com 4 - [color] 5 - ui = true 6 - [core] 7 - quotepath = false 8 - excludesfile = /Users/ianchamberlain/.gitignore_global 9 - editor = vim 3 + email = ichamberlain@128technology.com 4 + login = ichamberlain 10 5 [alias] 11 6 co = checkout 12 7 br = branch 8 + ci = commit 13 9 st = status 10 + unstage = reset HEAD -- 11 + last = log -1 HEAD 12 + delete = branch -d 13 + ppull = pull -p 14 + pfetch = fetch -p 15 + hardreset = reset --hard @{u} 16 + fpush = push --force-with-lease 14 17 ld = log --pretty=format:\"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]\" --decorate --date=relative 18 + sw = switch 19 + softreset = reset --soft HEAD~ 20 + default-branch = !git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@' 21 + branch-clean = !git branch --merged \"$(git default-branch)\" | egrep -v \"$(git default-branch)$\" | xargs -n 1 git branch --delete 22 + alias = "!sh -c '[ $# = 2 ] && git config --global alias.\"$1\" \"$2\" && exit 0 || echo \"usage: git alias <new alias> <original command>\" >&2 && exit 1' -" 23 + aliases = !git config --get-regexp 'alias.*' | sed -E 's/alias\\.([^[:space:]]+)[[:space:]](.+)/[\\1]'$'\\\\\\n'' \\2/' 24 + bc = branch-clean 25 + [core] 26 + excludesfile = /Users/ichamberlain/.gitignore_global 27 + editor = /usr/bin/vim 15 28 [difftool] 16 - prompt = false 29 + prompt = false 17 30 [difftool "vscode"] 18 - cmd = /usr/local/bin/code --diff --wait $LOCAL $REMOTE 31 + cmd = /usr/local/bin/code --diff --wait $LOCAL $REMOTE 19 32 [mergetool "vscode"] 20 - cmd = /usr/local/bin/code --wait $MERGED 33 + cmd = /usr/local/bin/code --wait $MERGED 21 34 trustExitCode = true 22 - [push] 23 - default = simple 24 - [credential] 25 - helper = osxkeychain 26 35 [diff] 27 - tool = vimdiff 28 - [filter "lfs"] 29 - clean = git-lfs clean -- %f 30 - smudge = git-lfs smudge -- %f 31 - process = git-lfs filter-process 32 - required = true 36 + tool = vscode 37 + [merge] 38 + renameLimit = 2000 39 + [submodule] 40 + recurse = true 41 + [push] 42 + recurseSubmodules = check 43 + [fetch] 44 + recurseSubmodules = false
+3 -39
.gitignore_global
··· 1 - # -*- mode: gitignore; -*- 2 - 3 - # Common definitions 4 1 *~ 5 - \#*\# 6 - *.swp 7 - *.elc 8 - .\#* 9 2 .DS_Store 10 3 GPATH 11 4 GRTAGS 12 5 GTAGS 13 - 14 6 .python-version 15 - 16 - .vscode 7 + .vscode/**/* 17 8 .classpath 18 9 *.egg-info 19 - **/bazel-* 10 + /bazel-* 20 11 /private/var/tmp/**/* 21 - 22 - # General 23 - .DS_Store 24 - .AppleDouble 25 - .LSOverride 26 - 27 - # Icon must end with two \r 28 - Icon 29 - 30 - 31 - # Thumbnails 32 - ._* 33 - 34 - # Files that might appear in the root of a volume 35 - .DocumentRevisions-V100 36 - .fseventsd 37 - .Spotlight-V100 38 - .TemporaryItems 39 - .Trashes 40 - .VolumeIcon.icns 41 - .com.apple.timemachine.donotpresent 42 - 43 - # Directories potentially created on remote AFP share 44 - .AppleDB 45 - .AppleDesktop 46 - Network Trash Folder 47 - Temporary Items 48 - .apdisk 12 + .mypy_cache/**/* 49 13
+5
.tmux.conf
··· 1 + setw -g mode-keys vi 2 + set -g mouse on 3 + set -g default-terminal "xterm-256color" 4 + set -g default-shell $SHELL 5 +
+53 -32
.vimrc
··· 1 1 set tabstop=4 2 2 set shiftwidth=4 3 3 set softtabstop=4 4 - 5 4 set expandtab 6 5 set autoindent 7 - set smartindent 6 + filetype indent on 7 + set number 8 8 set backspace=indent,eol,start 9 9 10 + syntax on 11 + set wrapmargin=0 12 + set ruler 13 + highlight ColorColumn ctermbg=7 14 + set colorcolumn=80 10 15 set whichwrap=<,>,[,],b 11 - set wrapmargin=0 12 16 13 - filetype indent on 17 + colorscheme monokai 14 18 15 - syntax on 19 + if has('macunix') 20 + set termguicolors 21 + set mouse=a 22 + endif 23 + 24 + if &diff 25 + set diffopt+=iwhite 26 + endif 27 + 28 + syn match myTodo contained "\<\(TODO\|FIXME\):" 29 + hi def link myTodo Todo 16 30 17 - if exists('g:vscode') 18 - " vscode-neovim specific settings 19 - xnoremap <silent> <Esc> :<C-u>call VSCodeNotify('closeFindWidget')<CR> 20 - nnoremap <silent> <Esc> :<C-u>call VSCodeNotify('closeFindWidget')<CR> 31 + " parse .cnf files as ini 32 + au BufNewFile,BufRead *.cnf set filetype=dosini 21 33 22 - xmap gc <Plug>VSCodeCommentary 23 - nmap gc <Plug>VSCodeCommentary 24 - omap gc <Plug>VSCodeCommentary 25 - nmap gcc <Plug>VSCodeCommentaryLine 34 + " parse .repo files as ini 35 + au BufNewFile,BufRead *.repo set filetype=dosini 26 36 27 - xmap <C-/> <Plug>VSCodeCommentarygv 28 - nmap <C-/> <Plug>VSCodeCommentaryLine 29 - else 30 - " ordinary vim/neovim settings that don't apply in VSCode 31 - set mouse=a 37 + " parse .init files as json 38 + au BufNewFile,BufRead *.init set filetype=javascript 32 39 33 - highlight ColorColumn ctermbg=7 34 - set colorcolumn=80 35 - set ruler 36 40 37 - set number 38 41 39 - let os = substitute(system('uname'), "\n", "", "") 40 - if os == "Darwin" 41 - set termguicolors 42 - endif 42 + " Code from: 43 + " http://stackoverflow.com/questions/5585129/pasting-code-into-terminal-window-into-vim-on-mac-os-x 44 + " then https://coderwall.com/p/if9mda 45 + " and then https://github.com/aaronjensen/vimfiles/blob/59a7019b1f2d08c70c28a41ef4e2612470ea0549/plugin/terminaltweaks.vim 46 + " to fix the escape time problem with insert mode. 47 + " 48 + " Docs on bracketed paste mode: 49 + " http://www.xfree86.org/current/ctlseqs.html 50 + " Docs on mapping fast escape codes in vim 51 + " http://vim.wikia.com/wiki/Mapping_fast_keycodes_in_terminal_Vim 43 52 44 - colorscheme Monokai 53 + if exists("g:loaded_bracketed_paste") 54 + finish 45 55 endif 56 + let g:loaded_bracketed_paste = 1 46 57 58 + let &t_ti .= "\<Esc>[?2004h" 59 + let &t_te = "\e[?2004l" . &t_te 47 60 48 - augroup CustomTodo 49 - autocmd! 50 - autocmd Syntax * syntax match CustomTodo /\v<(TODO|FIXME|NOTE)/ containedin=.*Comment 51 - augroup END 52 - highlight link CustomTodo Todo 61 + function! XTermPasteBegin(ret) 62 + set pastetoggle=<f29> 63 + set paste 64 + return a:ret 65 + endfunction 66 + 67 + execute "set <f28>=\<Esc>[200~" 68 + execute "set <f29>=\<Esc>[201~" 69 + map <expr> <f28> XTermPasteBegin("i") 70 + imap <expr> <f28> XTermPasteBegin("") 71 + vmap <expr> <f28> XTermPasteBegin("c") 72 + cmap <f28> <nop> 73 + cmap <f29> <nop>
-9
Documents/dotfiles/to-convert.txt
··· 20 20 21 21 22 22 TODO: 23 - .vscode/ 24 - instead of tracking extensions in this dir, probably make a 25 - bootstrapping command based on `code --list-extensions` 26 - and `code --install-extension`. Ideally would watch for changes to 27 - `~/.vscode/extensions` or at least run as a pre-commit hook. 28 - 29 23 pre-commit hooks? possibly 30 - 31 - bootstrap script. Definitely want this, maybe with brewfile or similar 32 - Strive for idempotency. 33 24 34 25 Iterm configuration (profiles, plist? any other) 35 26