emacs stuff, better mysql stuff, git aliases, and vim toggle filenos
This commit is contained in:
parent
879c601a56
commit
9c1317e757
2
bin/emax
Executable file
2
bin/emax
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
$(/Applications/Emacs.app/Contents/MacOS/Emacs "$@") &
|
@ -6,9 +6,6 @@ mysql.server stop
|
|||||||
killall mysqld
|
killall mysqld
|
||||||
killall mysqld
|
killall mysqld
|
||||||
killall mysqld
|
killall mysqld
|
||||||
killall mysqld
|
|
||||||
killall mysqld
|
|
||||||
killall mysqld
|
|
||||||
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://2048000`
|
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://2048000`
|
||||||
cp -r /usr/local/var/mysql /Volumes/ramdisk
|
cp -r /usr/local/var/mysql /Volumes/ramdisk
|
||||||
mysql.server start
|
mysql.server start
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
ll = log --stat --abbrev-commit # Way more information on git log
|
ll = log --stat --abbrev-commit # Way more information on git log
|
||||||
lb = log --stat --no-merges origin/master..
|
lb = log --stat --no-merges origin/master..
|
||||||
logtree= "log --graph --oneline --decorate --all" # show a tree with branches merging
|
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
|
p = push
|
||||||
pr = !"pr() { git fetch origin pull/$1/head:pr-$1; git checkout pr-$1; }; pr"
|
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
|
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
5
vimrc
@ -139,14 +139,15 @@ nnoremap Q <nop>
|
|||||||
|
|
||||||
|
|
||||||
" Toggle line numbers with F1 - no more stupid help!
|
" 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
|
autocmd StdinReadPre * let s:std_in=1
|
||||||
hi Normal ctermbg=none
|
hi Normal ctermbg=none
|
||||||
" Local config
|
" Local config
|
||||||
let g:go_fmt_command = "goimports"
|
let g:go_fmt_command = "goimports"
|
||||||
nnoremap <leader><tab> :buffers<CR>:buffer<Space>
|
nnoremap <leader><tab> :buffers<CR>:buffer<Space>
|
||||||
set background=dark
|
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_github=1
|
||||||
let vim_markdown_preview_browser='Google Chrome'
|
let vim_markdown_preview_browser='Google Chrome'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user