emacs stuff, better mysql stuff, git aliases, and vim toggle filenos

This commit is contained in:
Tyrel Souza 2017-06-22 09:55:58 -04:00
parent 879c601a56
commit 9c1317e757
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
4 changed files with 7 additions and 6 deletions

2
bin/emax Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
$(/Applications/Emacs.app/Contents/MacOS/Emacs "$@") &

View File

@ -6,9 +6,6 @@ mysql.server stop
killall mysqld
killall mysqld
killall mysqld
killall mysqld
killall mysqld
killall mysqld
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://2048000`
cp -r /usr/local/var/mysql /Volumes/ramdisk
mysql.server start

View File

@ -25,7 +25,8 @@
ll = log --stat --abbrev-commit # Way more information on git log
lb = log --stat --no-merges origin/master..
logtree= "log --graph --oneline --decorate --all" # show a tree with branches merging
ob = "!vim $(git diff --name-only origin/master | grep -v .tsv | grep -v .sql | grep -v static)"
ob = "!$EDITOR $(git diff --name-only origin/master | grep -v .tsv | grep -v .sql | grep -v static)"
od = "!$EDITOR $(git diff --name-only HEAD | grep -v .tsv | grep -v .sql | grep -v static)"
p = push
pr = !"pr() { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; }; pr"
recent = "!git for-each-ref --format=\"%(committerdate:relative) | %(refname)\" --sort=-committerdate refs/heads | sed '/master/d' | head -n 15" # get the most 10 recent branches worked on

5
vimrc
View File

@ -139,14 +139,15 @@ nnoremap Q <nop>
" Toggle line numbers with F1 - no more stupid help!
nmap <silent> <F1> :set invnumber<CR>
"nmap <silent> <F1> :set invnumber<CR>
nmap <silent> <F1> :exec &nu==&rnu? "se nu!" : "se rnu!"<CR>
autocmd StdinReadPre * let s:std_in=1
hi Normal ctermbg=none
" Local config
let g:go_fmt_command = "goimports"
nnoremap <leader><tab> :buffers<CR>:buffer<Space>
set background=dark
let vim_markdown_preview_hotkey='<C-m>'
let vim_markdown_preview_hotkey='<S-m>'
let vim_markdown_preview_github=1
let vim_markdown_preview_browser='Google Chrome'