Skip to content

Commit

Permalink
.bashrc for iterm tab titles
Browse files Browse the repository at this point in the history
.vimrc for comment indent fixing
  • Loading branch information
Jeremy Zawodny committed Jul 8, 2013
1 parent 3659341 commit 327e5fe
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 5 deletions.
12 changes: 11 additions & 1 deletion .bashrc
Expand Up @@ -137,7 +137,17 @@ if [ -f ~/.bashrc_local ]; then
. ~/.bashrc_local
fi

# $1 = type; 0 - both, 1 - tab, 2 - title
# rest = text
setTerminalText () {
# echo works in bash & zsh
local mode=$1 ; shift
echo -ne "\033]$mode;$@\007"
}
stt_both () { setTerminalText 0 $@; }
stt_tab () { setTerminalText 1 $@; }
stt_title () { setTerminalText 2 $@; }
stt () { setTerminalText 1 $@; }

PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

source .rvm/scripts/rvm
13 changes: 9 additions & 4 deletions .vimrc
Expand Up @@ -12,7 +12,7 @@ set number " line numbers
set numberwidth=5 " line number gutter width
set autoindent " testing
set cindent " testing
set smartindent " indent intelligently
"set smartindent " indent intelligently
set hidden " make buffers stick around
set showmode " tell me what mode I'm in
set wildmenu " completion of commands at :
Expand All @@ -26,6 +26,10 @@ set cursorline " show the line I'm on
" make sure tab compltion isn't overly agressive
set wildmode=longest,full

" fix indenting of comments, see http://stackoverflow.com/questions/191201/indenting-comments-
filetype plugin indent on
syntax enable

syntax on

" external text formatting command
Expand Down Expand Up @@ -74,11 +78,12 @@ set guioptions-=T "remove toolbar
nnoremap <F5> :buffers<CR>:buffer<Space>
if has('gui_running')
set background=light
"set background=light
"set background=dark
"set guifont=Monaco:h16
set guifont=Monaco:h14
"set guifont=Source\ Code\ Pro:h16
colorscheme Midnight
colorscheme torte
"colorscheme zellner
else
set t_Co=256 " force 256 color mode(s)
set background=dark
Expand Down

0 comments on commit 327e5fe

Please sign in to comment.