Git Product home page Git Product logo

dotfiles's People

Contributors

bensie avatar blueyed avatar daz avatar richardaday avatar ryanb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dotfiles's Issues

Rails 3 aliases

Isn't it nice? Maybe you add something more.

# rails 3.0
alias rn='rails new'
alias rs='rails server'
alias rg='rails generate'
alias rgs='rails generate nifty:scaffold'
alias rc='rails console'
alias rp='rails plugin'
alias rpi='rails plugin install'

# bundler primary commands
alias bi='bundle install'
alias bu='bundle update'
alias bp='bundle package'
alias be='bundle exec'
alias bconf='bundle config'

# bundler utilities
alias bc='bundle check'
alias bl='bundle list'
alias bs='bundle show'
alias bc='bundle console'
alias bo='bundle open'
alias bv='bundle viz'
alias binit='bundle init'
alias bg='bundle gem'

source ~/.vimrc error after installation

Hi, after installation, run source ~/.vimrc cause following error:

~/.dotfiles[master*]% source ~/.vimrc
/home/haoliu/.vimrc:1: no matches found: (much better!).
/home/haoliu/.vimrc:4: command not found: This must be first, because it changes other options as a side effect.\nset nocompatible\n\n
/home/haoliu/.vimrc:17: command not found: Don't use Ex mode, use Q for formatting\nmap Q gq\n\n
/home/haoliu/.vimrc:21: command not found: text is lost and it only works for putting the current register.\nvnoremap
/home/haoliu/.vimrc:25: command not found: Also switch on highlighting the last used search pattern.\nif (&t_Co > 2 || has(gui_running)) && !exists(syntax_on)\n syntax on\n set hlsearch\nendif\n\n
/home/haoliu/.vimrc:34: command not found: Only do this part when compiled with support for autocommands.\nif has(autocmd)\n
/home/haoliu/.vimrc:37: command not found: Use the default filetype settings, so that mail gets 'tw' set to 72,\n
/home/haoliu/.vimrc:39: command not found: Also load indent files, to automatically do language-dependent indenting.\n filetype plugin indent on\n\n
/home/haoliu/.vimrc:43: no matches found: *.txt
/home/haoliu/.vimrc:45: command not found: Enable soft-wrapping for text files\n autocmd FileType text,markdown,html,xhtml,eruby setlocal wrap linebreak nolist\n\n
/home/haoliu/.vimrc:49: command not found: augroup
/home/haoliu/.vimrc:50: command not found: au!
/home/haoliu/.vimrc:52: command not found: For all text files set 'textwidth' to 78 characters.\n
/home/haoliu/.vimrc:55: no matches found: Dont do it when the position is invalid or when inside an event handler\n " (happens when dropping a file on gvim).\n autocmd BufReadPost *\n \ if line("") > 0 && line("") <= line("$") |\n \ exe "normal g\"" |\n \ endif\n\n " Automatically load .vimrc source when saved\n autocmd BufWritePost .vimrc source $MYVIMRC\n\n augroup END\n\nelse\n\n set autoindent\t\t" always set autoindenting on\n\nendif " has("autocmd")\n\n" if has("folding")\n " set foldenable\n " set foldmethod=syntax\n " set foldlevel=1\n " set foldnestmax=2\n " set foldtext=strpart(getline(v:foldstart),0,50). ... .substitute(getline(v:foldend),^[ #]*,,g). \n" endif\n\n" Softtabs, 2 spaces\nset tabstop=2\nset shiftwidth=2\nset expandtab\n\n" Always display the status line\nset laststatus=2\n\n" \ is the leader character\nlet mapleader = ","\n\n" Edit the README_FOR_APP (makes :R commands work)\nmap <Leader>R :e doc/README_FOR_APP<CR>\n\n" Leader shortcuts for Rails commands\nmap <Leader>m :Rmodel \nmap <Leader>c :Rcontroller \nmap <Leader>v :Rview \nmap <Leader>u :Runittest \nmap <Leader>f :Rfunctionaltest \nmap <Leader>tm :RTmodel \nmap <Leader>tc :RTcontroller \nmap <Leader>tv :RTview \nmap <Leader>tu :RTunittest \nmap <Leader>tf :RTfunctionaltest \nmap <Leader>sm :RSmodel \nmap <Leader>sc :RScontroller \nmap <Leader>sv :RSview \nmap <Leader>su :RSunittest \nmap <Leader>sf :RSfunctionaltest \n\n" Hide search highlighting\nmap <Leader>h :set invhls <CR>\n\n" Opens an edit command with the path of the currently edited file filled in\n" Normal mode: <Leader>e\nmap <Leader>e :e <C-R>=expand("%:p:h") . "/" <CR>\n\n" Opens a tab edit command with the path of the currently edited file filled in\n" Normal mode: <Leader>t\nmap <Leader>te :tabe <C-R>=expand("%:p:h") . "/" <CR>\n\n" Inserts the path of the currently edited file into a command\n" Command mode: Ctrl+P\ncmap <C-P> <C-R>=expand("%:p:h") . "/" <CR>\n\n" Duplicate a selection\n" Visual mode: D\nvmap D y /home/haoliu/.vimrc:132: command not found: Press Shift+P while in visual mode to replace the selection without\n /home/haoliu/.vimrc:135: parse error near \n'

Although vim work fine even with this, I wonder if you can help me solve this.

Rakefile/install: only ask about questions once (via template/ERB cache?!)

The install process is nice and handy, but could be better for ".erb" files (e.g. gitconfig.erb), where you will be asked about Git user name and email over and over, when reinstalling (which might happen while you're tweaking the .erb file).

I have no experience with the capabilities ERB provides, but maybe it is possible to cache replacement blocks, and do not regenerate (i.e. ask about) them, when the particular block is cached already, e.g. in .gitconfig.erb.cache?!

crontab -e doesn't work with mate -w

When I try to run crontab -e I get the following error:

crontab: mate -w: No such file or directory
crontab: "mate -w" exited with status 1

Any idea how to fix this?

Removing/replacing ~/.vim fails (is a directory)

$ LANG=C rake install
(in /home/user/.dotfiles)
identical ~/.vimrc
[...]
overwrite ~/.vim? [ynaq] y
rm: cannot remove /home/user/.vim': Is a directory linking ~/.vim ln: creating symbolic link/home/user/.vim/vim': File exists

Workaround is to manually remove the directory, but it would be nice if the install script would handle this.
Adding "-rf" to the "rm" call fixes this apparently.

unable to load colour scheme with recent homebrew version of MacVim

Not sure if this is specific to MacVim or whether it's because I've recently moved to yosemite
It's the first time I've tried this colour scheme on my mac. It's worth noting that it works fine on my windows machine at work.

Initially the scheme would not load up when opening up MacVim (which I think is a separate issue which I'm currently trying to solve). However, when I place railscasts.vim in ~/.vim/colors and run the command :color railscasts as a test I get the following output:

Error detected while processing /Users/benfranklin/.vim/colors/railscasts.vim:
line 6:
E492: Not an editor command: ^M
line 7:
E474: Invalid argument: background=dark^M
line 8:
E411: highlight group not found: clear^M
line 9:
E15: Invalid expression: exists("syntax_on")^M
line 97:
E171: Missing :endif

mongrel process won't quit after quiting terminal.

I am using your dotfiles config files for my OSX Terminal (zsh), very nice! anyway I have a problem that i cant figure out. When i quit my terminal my mongrel-server keeps running??

Do you have an idea what I'm doing wrong?

Maybe, I miss some required file (e.g. zsh_logout) which kill the process after quiting?
Hope you can help me!

I using rails 2.3.5 / ruby 1.8.7 and RVM

regards,

Argument required: Plugin

I was trying to install Plugins via vundle, although it successfully installed plugins, when type vim it throw out following errors:

Error detected while processing /home/haoliu/.vimrc:
line 248:
E471: Argument required: Plugin
line 249:
E471: Argument required: Plugin
line 250:
E471: Argument required: Plugin
line 251:
E471: Argument required: Plugin
line 252:
E471: Argument required: Plugin
line 253:
E471: Argument required: Plugin
line 254:
E471: Argument required: Plugin
line 255:
E471: Argument required: Plugin
line 256:
E471: Argument required: Plugin
line 257:
E471: Argument required: Plugin
line 258:
E471: Argument required: Plugin
line 259:
E471: Argument required: Plugin
line 260:
E471: Argument required: Plugin
line 261:
E471: Argument required: Plugin
line 262:
E471: Argument required: Plugin
line 263:
E471: Argument required: Plugin
Press ENTER or type command to continue

Here is what my ~/.vimrc file looks like(in fact, I only modified bundle plugins parts):

" based on http://github.com/jferris/config_files/blob/master/vimrc

" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible

" allow backspacing over everything in insert mode
set backspace=indent,eol,start

set nobackup
set nowritebackup
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching

" Don't use Ex mode, use Q for formatting
map Q gq

" This is an alternative that also works in block mode, but the deleted
" text is lost and it only works for putting the current register.
"vnoremap p "_dp

" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if (&t_Co > 2 || has("gui_running")) && !exists("syntax_on")
syntax on
set hlsearch
endif

" Switch wrap off for everything
set nowrap

" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on

" Set File type to 'text' for files ending in .txt
autocmd BufNewFile,BufRead *.txt setfiletype text

" Enable soft-wrapping for text files
autocmd FileType text,markdown,html,xhtml,eruby setlocal wrap linebreak nolist

" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!

" For all text files set 'textwidth' to 78 characters.
" autocmd FileType text setlocal textwidth=78

" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'"") > 0 && line("'"") <= line("$") |
\ exe "normal g`"" |
\ endif

" Automatically load .vimrc source when saved
autocmd BufWritePost .vimrc source $MYVIMRC

augroup END

else

set autoindent " always set autoindenting on

endif " has("autocmd")

" if has("folding")
" set foldenable
" set foldmethod=syntax
" set foldlevel=1
" set foldnestmax=2
" set foldtext=strpart(getline(v:foldstart),0,50).'\ ...\ '.substitute(getline(v:foldend),'^[\ #]*','','g').'\ '
" endif

" Softtabs, 2 spaces
set tabstop=2
set shiftwidth=2
set expandtab

" Always display the status line
set laststatus=2

" \ is the leader character
let mapleader = ","

" Edit the README_FOR_APP (makes :R commands work)
map R :e doc/README_FOR_APP

" Leader shortcuts for Rails commands
map m :Rmodel
map c :Rcontroller
map v :Rview
map u :Runittest
map f :Rfunctionaltest
map tm :RTmodel
map tc :RTcontroller
map tv :RTview
map tu :RTunittest
map tf :RTfunctionaltest
map sm :RSmodel
map sc :RScontroller
map sv :RSview
map su :RSunittest
map sf :RSfunctionaltest

" Hide search highlighting
map h :set invhls

" Opens an edit command with the path of the currently edited file filled in
" Normal mode: e
map e :e =expand("%:p:h") . "/"

" Opens a tab edit command with the path of the currently edited file filled in
" Normal mode: t
map te :tabe =expand("%:p:h") . "/"

" Inserts the path of the currently edited file into a command
" Command mode: Ctrl+P
cmap =expand("%:p:h") . "/"

" Duplicate a selection
" Visual mode: D
vmap D y'>p

" Press Shift+P while in visual mode to replace the selection without
" overwriting the default register
vmap P p :call setreg('"', getreg('0'))

" For Haml
au! BufRead,BufNewFile *.haml setfiletype haml

" No Help, please
nmap

" Press ^F from insert mode to insert the current file name
imap =expand("%")

" Maps autocomplete to tab
imap

imap =>

" Display extra whitespace
" set list listchars=tab:»·,trail:·

" Edit routes
command! Rroutes :e config/routes.rb
command! Rschema :e db/schema.rb

" Local config
if filereadable(".vimrc.local")
source .vimrc.local
endif

" Use Ack instead of Grep when available
if executable("ack")
set grepprg=ack\ -H\ --nogroup\ --nocolor\ --ignore-dir=tmp\ --ignore-dir=coverage
endif

" Color scheme
" colorscheme vividchalk
" highlight NonText guibg=#060606
" highlight Folded guibg=#0A0A0A guifg=#9090D0

" Numbers
set number
set numberwidth=5

" Snippets are activated by Shift+Tab
let g:snippetsEmu_key = ""

" Tab completion options
" (only complete to the longest unambiguous match, and show a menu)
set completeopt=longest,menu
set wildmode=list:longest,list:full
set complete=.,t

" case only matters with mixed case expressions
set ignorecase
set smartcase

" Tags
let g:Tlist_Ctags_Cmd="ctags --exclude='*.js'"
set tags=./tags;

let g:fuf_splitPathMatching=1

" Open URL
command -bar -nargs=1 OpenURL :!open
function! OpenURL()
let s:uri = matchstr(getline("."), '[a-z]://[^ >,;:]')
echo s:uri
if s:uri != ""
exec "!open "" . s:uri . """
else
echo "No URI found in line."
endif
endfunction
map w :call OpenURL()

"disable arrow key movement"
noremap
noremap
noremap
noremap

set nocompatible " be iMproved, required
filetype off " required

" set the runtime path to include Vundle and initialize
set rtp+=/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('
/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

" Define Plugins via Github repos
Plugin 'christoomey/vim-run-interactive'
"Plugin 'Valloric/YouCompleteMe'"
Plugin 'croaky/vim-colors-github'
Plugin 'danro/rename.vim'
Plugin 'majutsushi/tagbar'
Plugin 'kchmck/vim-coffee-script'
Plugin 'kien/ctrlp.vim'
Plugin 'pbrisbin/vim-mkdir'
Plugin 'scrooloose/syntastic'
Plugin 'slim-template/vim-slim'
Plugin 'thoughtbot/vim-rspec'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-surround'
Plugin 'vim-ruby/vim-ruby'
Plugin 'vim-scripts/ctags.vim'
Plugin 'vim-scripts/matchit.zip'
Plugin 'vim-scripts/tComment'
Plugin "mattn/emmet-vim"
Plugin "scrooloose/nerdtree"
Plugin "Lokaltog/vim-powerline"
Plugin "godlygeek/tabular"
Plugin "msanders/snipmate.vim"
Plugin "jelera/vim-javascript-syntax"
Plugin "altercation/vim-colors-solarized"
Plugin "othree/html5.vim"
Plugin "xsbeats/vim-blade"
Plugin "Raimondi/delimitMate"
Plugin "groenewege/vim-less"
Plugin "evanmiller/nginx-vim-syntax"
Plugin "Lokaltog/vim-easymotion"
Plugin "tomasr/molokai"
Plugin "klen/python-mode"
Plugin "easymotion/vim-easymotion"

" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
"Plugin 'tpope/vim-fugitive'"
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
"Plugin 'file:///home/gmarik/path/to/plugin'"
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}

" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append ! to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append ! to refresh local cache
" :PluginClean - confirms removal of unused plugins; append ! to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

I don't know what happened, even after google search, could you please tell me why?

Support colors for git interactive modes

I think that it will be good to add color.ui=auto to global gitconfig. With this option working with git in interactive mode (i.e. git add -i) will be much more pleasant. See screenshot below.

example without and with color.ui=auto

Bash files not reloading after restart of Terminal

I am trying to add a path to my paths in .bash_profile, just added a line at the bottom export PATH="/opt/local/bin:$PATH" but none of the dotfiles seem to run when I quit and then reopen the terminal. They should shouldnt they? Even just manually running ./.bash_profile doesnt seem to run anything.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.