Just some updates

This commit is contained in:
Josh Sherman 2015-03-20 11:50:40 -04:00
parent dcd2c8bd50
commit a6445a4f2e
7 changed files with 24 additions and 31 deletions

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
vim/bundle
vim/.netrwhist

View file

@ -1,2 +1,7 @@
joshtronic dotfiles
===================
# Josh and the Amazing Technicolor Dotfiles
My dotfiles bring all the nerds to the yard.
## Installation
Funny you should ask about that...

View file

@ -4,9 +4,9 @@ packages:
- Homebrew/homebrew-php
- joshtronic/homebrew-formulae
- bash
- ghi
- git
- git-extras
- gpg
- imagemagick
- likes
- memcached

View file

@ -1,2 +1,3 @@
setlocal shiftwidth=4
setlocal softtabstop=4
setlocal tabstop=4

View file

@ -58,7 +58,7 @@ Bundle 'cakebaker/scss-syntax.vim'
Bundle 'ervandew/supertab'
"Bundle 'garbas/vim-snipmate'
Bundle 'groenewege/vim-less'
"Bundle 'joshtronic/php.vim'
Bundle 'joshtronic/php.vim'
"Bundle 'jQuery'
Bundle 'kien/ctrlp.vim'
Bundle 'hail2u/vim-css3-syntax'
@ -72,8 +72,8 @@ Bundle 'nanotech/jellybeans.vim'
Bundle 'pangloss/vim-javascript.git'
"Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
"Bundle 'skammer/vim-css-color'
"Bundle 'scrooloose/syntastic'
"Bundle 'shawncplus/phpcomplete.vim'
Bundle 'scrooloose/syntastic'
Bundle 'shawncplus/phpcomplete.vim'
"Bundle 'SearchComplete'
colorscheme jellybeans

View file

@ -1,39 +1,23 @@
function username()
{
if [[ `whoami` != 'josh' ]];
then
echo %{$FG[248]%}%n
fi
if [[ `whoami` != 'josh' ]];
then
echo %{$FG[248]%}%n
fi
}
function server()
{
if [[ `hostname` != *.local ]];
then
echo "%{$FG[244]%}@%{$fg[magenta]%}%m "
fi
}
function unread_email()
{
file=/tmp/UNREAD_GMAIL
if [[ -a $file ]];
then
unread=( $(<${file}) )
if [[ unread -ge 5 ]];
then
echo 📩
fi
fi
if [[ `hostname` != *.home ]];
then
echo "%{$FG[244]%}@%{$fg[magenta]%}%m "
fi
}
USER="$(username)$(server)"
PROMPT='
%{$USER%}%{$fg[blue]%}%~ $(git_prompt_info)
%{$FG[244]%}%# %{$reset_color%}'
RPROMPT='$(unread_email)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[yellow]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"

View file

@ -38,7 +38,7 @@ alias vd="vimdiff"
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
export GREP_OPTIONS="--color=auto"
export GREP_OPTIONS="--color=auto --exclude-dir=.git --exclude-dir=artwork --exclude-dir=node_modules"
export EDITOR=vim