Created
April 7, 2018 13:19
-
-
Save pbmarcano/0bb689432e0a5de2d30650afd0d5577a to your computer and use it in GitHub Desktop.
some dotfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# export PS1="\u@\W$ " | |
export PS1='$(printf "%*s\r%s" $(( COLUMNS-1 )) "[$(git branch 2>/dev/null | grep '^*' | sed s/..//)] $(date +%H:%M:%S)" "\u @ \W 👍 ")' | |
[[ -s "$HOME/.profile" ]] && source "$HOME/.profile" # Load the default .profile | |
if which swiftenv > /dev/null; then eval "$(swiftenv init -)"; fi | |
alias bake='bundle exec rake' | |
alias bails='bundle exec rails' | |
alias til='cd ~/Developer/til' | |
alias nn='cd ~/Developer/navinata-next' | |
alias nh-static='cd ~/Developer/navinata-static' | |
alias cards='cd ~/Developer/cards' | |
alias mio='cd ~/Developer/marcanoio' | |
alias crypto='ruby ~/Developer/sugar_shack/once.rb' | |
## rvm | |
PATH="$GEM_HOME/bin:$HOME/.rvm/bin:$PATH" # Add RVM to PATH for scripting | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() | |
Plugin 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required | |
Plugin 'airblade/vim-gitgutter' | |
Plugin 'c-brenn/phoenix.vim' | |
Plugin 'elixir-lang/vim-elixir' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'nanotech/jellybeans.vim' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'parkr/vim-jekyll' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'tpope/vim-commentary' | |
Plugin 'tpope/vim-dispatch' | |
Plugin 'tpope/vim-endwise' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'tpope/vim-liquid' | |
Plugin 'tpope/vim-markdown' | |
Plugin 'tpope/vim-projectionist' | |
Plugin 'tpope/vim-rails' | |
Plugin 'tpope/vim-surround' | |
Plugin 'thoughtbot/vim-rspec' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Editor customization | |
syntax enable | |
colorscheme jellybeans | |
set cursorline cursorcolumn | |
set number relativenumber | |
set incsearch | |
set hlsearch | |
set ignorecase | |
set smartcase | |
" Leader mapping | |
map <Leader>t :call RunCurrentSpecFile()<CR> | |
map <Leader>s :call RunNearestSpec()<CR> | |
map <Leader>l :call RunLastSpec()<CR> | |
map <Leader>a :call RunAllSpecs()<CR> | |
map <Leader>n :NERDTree<CR> | |
map <Leader>h :nohlsearch<CR> | |
" Jekyll Blogging overwrite | |
let g:jekyll_post_template = [ | |
\ '---', | |
\ 'layout: post', | |
\ 'title: "JEKYLL_TITLE"', | |
\ 'date: "JEKYLL_DATE"', | |
\ 'categories: ', | |
\ '---', | |
\ ''] | |
" ctrlp to ignore DS_Store, git, and node_modules | |
let g:ctrlp_custom_ignore = 'node_modules\|DS_Store\|git\|_site' | |
" Only do this part when compiled with support for autocommands. | |
if has("autocmd") | |
" Use filetype detection and file-based automatic indenting. | |
filetype plugin indent on | |
" Use actual tab chars in Makefiles. | |
autocmd FileType make set tabstop=8 shiftwidth=8 softtabstop=0 noexpandtab | |
endif | |
set backspace=indent,eol,start | |
" For everything else, use a tab width of 2 space chars. | |
set tabstop=2 " The width of a TAB is set to 2. | |
" Still it is a \t. It is just that | |
" Vim will interpret it to be having | |
" a width of 2. | |
set shiftwidth=2 " Indents will have a width of 2. | |
set softtabstop=2 " Sets the number of columns for a TAB. | |
set expandtab " Expand TABs to spaces. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment