move files to dotfiles. add sym link from home.
This commit is contained in:
parent
0fcd752c17
commit
70fc9756ca
|
@ -0,0 +1,9 @@
|
|||
export VISUAL=vim
|
||||
export EDITOR="$VISUAL"
|
||||
|
||||
function homestead() {
|
||||
( cd ~/Homestead && vagrant $* )
|
||||
}
|
||||
alias hup="homestead up && homestead ssh"
|
||||
|
||||
PATH=$PATH:$HOME/.config/composer/vendor/bin
|
|
@ -0,0 +1,8 @@
|
|||
[user]
|
||||
name = Les Vegetables
|
||||
email = "matt@happyhousemedia.com"
|
||||
[alias]
|
||||
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
|
||||
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
||||
lg = !"git lg1"
|
||||
|
|
@ -0,0 +1,47 @@
|
|||
execute pathogen#infect()
|
||||
|
||||
set nocompatible " Disable vi-compatibility
|
||||
|
||||
set guifont=menlo\ for\ powerline:h16
|
||||
set guioptions-=T " Removes top toolbar
|
||||
set guioptions-=r " Removes right hand scroll bar
|
||||
set go-=L " Removes left hand scroll bar
|
||||
set linespace=15
|
||||
|
||||
set showmode " always show what mode we're currently editing in
|
||||
set nowrap " don't wrap lines
|
||||
set tabstop=4 " a tab is four spaces
|
||||
set smarttab
|
||||
set tags=tags
|
||||
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
|
||||
set expandtab " expand tabs by default (overloadable per file type later)
|
||||
set shiftwidth=4 " number of spaces to use for autoindenting
|
||||
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
|
||||
set backspace=indent,eol,start " allow backspacing over everything in insert mode
|
||||
set number " always show line numbers
|
||||
set ignorecase " ignore case when searching
|
||||
set smartcase " ignore case if search pattern is all lowercase,
|
||||
set timeout timeoutlen=200 ttimeoutlen=100
|
||||
set visualbell " don't beep
|
||||
set noerrorbells " don't beep
|
||||
set autowrite "Save on buffer switch
|
||||
|
||||
" Down is really the next line
|
||||
nnoremap j gj
|
||||
nnoremap k gk
|
||||
|
||||
"Easy escaping to normal model
|
||||
imap jj <esc>
|
||||
|
||||
"Load the current buffer in Chrome
|
||||
nmap ,c :!open -a Firefox<cr>
|
||||
|
||||
" Familiar commands for file/symbol browsing
|
||||
map <D-p> :CtrlP<cr>
|
||||
map <C-r> :CtrlPBufTag<cr>
|
||||
|
||||
" I don't want to pull up these folders/files when calling CtrlP
|
||||
set wildignore+=*/node_modules/**
|
||||
let g:slime_target = "tmux"
|
||||
let g:slime_default_config = {"socket_name": "default", "target_pane": "1"}
|
||||
|
80
init.sh
80
init.sh
|
@ -1,77 +1,19 @@
|
|||
rm ~/.vim/ -rf
|
||||
mkdir -p ~/.vim/autoload ~/.vim/bundle
|
||||
mkdir ~/.vim
|
||||
mkdir ~/.vim/autoload
|
||||
mkdir ~/.vim/bundle
|
||||
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
||||
|
||||
cd ~/.vim/bundle
|
||||
git clone https://github.com/ctrlpvim/ctrlp.vim.git
|
||||
git clone https://github.com/jpalardy/vim-slime.git
|
||||
|
||||
cat > ~/.vimrc <<EOF
|
||||
execute pathogen#infect()
|
||||
|
||||
set nocompatible " Disable vi-compatibility
|
||||
|
||||
set guifont=menlo\ for\ powerline:h16
|
||||
set guioptions-=T " Removes top toolbar
|
||||
set guioptions-=r " Removes right hand scroll bar
|
||||
set go-=L " Removes left hand scroll bar
|
||||
set linespace=15
|
||||
|
||||
set showmode " always show what mode we're currently editing in
|
||||
set nowrap " don't wrap lines
|
||||
set tabstop=4 " a tab is four spaces
|
||||
set smarttab
|
||||
set tags=tags
|
||||
set softtabstop=4 " when hitting <BS>, pretend like a tab is removed, even if spaces
|
||||
set expandtab " expand tabs by default (overloadable per file type later)
|
||||
set shiftwidth=4 " number of spaces to use for autoindenting
|
||||
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
|
||||
set backspace=indent,eol,start " allow backspacing over everything in insert mode
|
||||
set number " always show line numbers
|
||||
set ignorecase " ignore case when searching
|
||||
set smartcase " ignore case if search pattern is all lowercase,
|
||||
set timeout timeoutlen=200 ttimeoutlen=100
|
||||
set visualbell " don't beep
|
||||
set noerrorbells " don't beep
|
||||
set autowrite "Save on buffer switch
|
||||
|
||||
" Down is really the next line
|
||||
nnoremap j gj
|
||||
nnoremap k gk
|
||||
|
||||
"Easy escaping to normal model
|
||||
imap jj <esc>
|
||||
|
||||
"Load the current buffer in Chrome
|
||||
nmap ,c :!open -a Firefox<cr>
|
||||
|
||||
" Familiar commands for file/symbol browsing
|
||||
map <D-p> :CtrlP<cr>
|
||||
map <C-r> :CtrlPBufTag<cr>
|
||||
|
||||
" I don't want to pull up these folders/files when calling CtrlP
|
||||
set wildignore+=*/vendor/**
|
||||
set wildignore+=*/node_modules/**
|
||||
let g:slime_target = "tmux"
|
||||
let g:slime_default_config = {"socket_name": "default", "target_pane": "1"}
|
||||
|
||||
EOF
|
||||
git clone https://github.com/ctrlpvim/ctrlp.vim.git ~/.vim/bundle/
|
||||
git clone https://github.com/jpalardy/vim-slime.git ~/.vim/bundle/
|
||||
|
||||
rm ~/.vimrc
|
||||
ln -s $PWD/dotfiles/.vimrc ~/
|
||||
|
||||
rm ~/.gitconfig
|
||||
cat > ~/.gitconfig <<EOF
|
||||
[user]
|
||||
name = Les Vegetables
|
||||
email = "matt@happyhousemedia.com"
|
||||
[alias]
|
||||
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
|
||||
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
||||
lg = !"git lg1"
|
||||
ln -s $PWD/dotfiles/.gitconfig ~/
|
||||
|
||||
EOF
|
||||
rm ~/.bash_profile
|
||||
ln -s $PWD/dotfiles/.bash_profile ~/
|
||||
|
||||
export VISUAL=vim
|
||||
export EDITOR="$VISUAL"
|
||||
|
||||
sed -i '$ a alias hup="cd ~/Homestead && vagrant up && vagrant ssh"' ~/.bashrc
|
||||
source ~/.bashrc
|
||||
source ~/.bash_profile
|
||||
|
|
Loading…
Reference in New Issue