Skip to content

Commit

Permalink
removing vim stuff as I use janus
Browse files Browse the repository at this point in the history
  • Loading branch information
tclem committed Apr 30, 2011
1 parent aabcce7 commit b665a07
Show file tree
Hide file tree
Showing 55 changed files with 45 additions and 231 deletions.
4 changes: 4 additions & 0 deletions bin/server-reload
@@ -0,0 +1,4 @@
#!/bin/sh
ps aux | grep nginx | awk '{print }' | xargs sudo kill -9
sudo nginx
script/unicorn_dev
30 changes: 9 additions & 21 deletions git/aliases.zsh
@@ -1,33 +1,21 @@
# Use `hub` as our git wrapper: # Use `hub` as our git wrapper:
# http://defunkt.github.com/hub/ # http://defunkt.github.com/hub/
# git(){hub "$@"}
# I use JRuby substantially, and we want to make sure hub is run using MRI
# regardless of which Ruby you're using or else the `git status` in your prompt
# will take seven thousand seconds to run `ls`.
#
# I'm hardcoding it to an installed rvm (using rvm's `rvm 1.8.7,ruby /hub/path`
# syntax is way too slow). It should work fine for those without rvm, though.
if [[ -s $HOME/.rvm/scripts/rvm ]]
then
# alias git='$HOME/.rvm/rubies/ruby-1.8.7-p302/bin/ruby `which hub`'
alias git='$HOME/.rvm/rubies/ruby-1.8.7-p330/bin/ruby `which hub`'
fi

# The rest of my fun git aliases
# alias ga='git add .'
ga() { ga() {
git add . git add .
git add -u git add -u
} }
alias gl='git pull --rebase --prune' alias g='git'
alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative" alias gp='git pull --rebase --prune'
alias gp='git push origin HEAD' alias gpush='git push origin HEAD'
# alias glog="git log --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
# alias gp='git push origin HEAD'
alias gd='git diff' alias gd='git diff'
alias gc='git commit' alias gc='git commit'
alias gitc='git commit -m' alias gitc='git commit -m'
alias gca='git commit -a' # alias gca='git commit -a'
alias gco='git checkout' alias gco='git checkout'
alias gb='git branch' alias gb='git branch'
alias gss='git status -sb' # upgrade your git if -sb breaks for you. it's fun. alias gss='git status -sb' # upgrade your git if -sb breaks for you. it's fun.
alias gs='git status' # upgrade your git if -sb breaks for you. it's fun. alias gs='git status'
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm" # alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
31 changes: 12 additions & 19 deletions git/gitconfig.sample
Expand Up @@ -7,24 +7,17 @@
# can symlink ~/.gitconfig to this file and go rock out with your git out! # can symlink ~/.gitconfig to this file and go rock out with your git out!


[user] [user]
name = Zach Holman name = Tim Clem
email = your@example.com email = timothy.clem@gmail.com
[alias] [github]
co = checkout user = tclem
promote = !$ZSH/bin/git-promote token = 30105e012899452fc53ec28c637d988f
wtf = !$ZSH/bin/git-wtf
rank-contributers = !$ZSH/bin/git-rank-contributers
count = !git shortlog -sn
[color] [color]
diff = auto ui = true
status = auto [rerere]
branch = auto enabled = true
[alias]
lol = log --oneline --graph --decorate
[core] [core]
excludesfile = ~/.gitignore autocrlf = input
editor = mate -w
[apply]
whitespace = nowarn
[github]
user = holman
[mergetool]
keepBackup = false
2 changes: 0 additions & 2 deletions jruby/aliases.zsh

This file was deleted.

63 changes: 0 additions & 63 deletions mailplane/stylesheet.css

This file was deleted.

12 changes: 0 additions & 12 deletions netnewswire/reclining.nnwstyle/Info.plist

This file was deleted.

13 changes: 0 additions & 13 deletions netnewswire/reclining.nnwstyle/Readme.markdown

This file was deleted.

69 changes: 0 additions & 69 deletions netnewswire/reclining.nnwstyle/stylesheet.css

This file was deleted.

16 changes: 0 additions & 16 deletions netnewswire/reclining.nnwstyle/template.html

This file was deleted.

7 changes: 4 additions & 3 deletions ruby/aliases.zsh
@@ -1,12 +1,13 @@
alias r='rvm use 1.8.7' alias r='rvm use 1.8.7'


alias f='RAILS_ENV=fi'

alias sc='script/console' alias sc='script/console'
alias ss='script/server -p `available_rails_port`' alias ss='script/server -p `available_rails_port`'
alias sg='script/generate' alias sg='script/generate'
alias sd='script/destroy' alias sd='script/destroy'


alias migrate='rake db:migrate db:test:clone' alias migrate='rake db:migrate db:test:clone'


alias s="ps aux | grep \"[r]uby\" | grep script/server || echo \"You're not running any, dawg.\"" alias s="ps aux | grep \"[r]uby\" | grep script/server || echo \"You're not running any, dawg.\""

alias killnginx="ps aux | grep nginx | awk '{print $2}' | xargs sudo kill -9"

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion zsh/aliases.zsh
@@ -1,4 +1,5 @@
alias dotmate='mate $ZSH' alias dotmate='mate $ZSH'
alias dotcd='cd $ZSH' alias dotcd='cd $ZSH'


alias reload!='. ~/.zshrc' alias reload!='. ~/.zshrc'
alias v=mvim
4 changes: 4 additions & 0 deletions zsh/completion.zsh
Expand Up @@ -3,3 +3,7 @@ zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'


# pasting with tabs doesn't perform completion # pasting with tabs doesn't perform completion
zstyle ':completion:*' insert-tab pending zstyle ':completion:*' insert-tab pending

# tab completion colors
zstyle ':completion:*' list-colors ''
#zstyle ':completion:*' list-colors ${(s.:.)LSCOLORS}
22 changes: 10 additions & 12 deletions zsh/prompt.zsh
Expand Up @@ -22,13 +22,13 @@ git_dirty() {
} }


git_prompt_info () { git_prompt_info () {
ref=$(git symbolic-ref HEAD 2>/dev/null) || return ref=$(git symbolic-ref HEAD 2>/dev/null) || return
# echo "(%{\e[0;33m%}${ref#refs/heads/}%{\e[0m%})" # echo "(%{\e[0;33m%}${ref#refs/heads/}%{\e[0m%})"
echo "${ref#refs/heads/}" echo "${ref#refs/heads/}"
} }


project_name () { project_name () {
name=$(pwd | awk -F'Development/' '{print $2}' | awk -F/ '{print $1}') name=$(pwd | awk -F'GitHub/' '{print $2}' | awk -F/ '{print $1}')
echo $name echo $name
} }


Expand All @@ -44,9 +44,9 @@ unpushed () {
need_push () { need_push () {
if [[ $(unpushed) == "" ]] if [[ $(unpushed) == "" ]]
then then
echo " " echo ""
else else
echo "with %{$fg_bold[magenta]%}unpushed%{$reset_color%}" echo " with %{$fg_bold[magenta]%}unpushed%{$reset_color%}"
fi fi
} }


Expand All @@ -63,11 +63,9 @@ directory_name(){
echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}" echo "%{$fg_bold[cyan]%}%1/%\/%{$reset_color%}"
} }


export PROMPT=$'\n$(rvm_prompt) in $(directory_name) $(project_name_color)$(git_dirty) $(need_push)\n' date_time='%D{%m.%d.%Y} %@'
set_prompt () {
export RPROMPT="" export PROMPT=$'$(rvm_prompt) in $(directory_name) $(project_name_color)$(git_dirty)$(need_push)\n%% '
} #export RPROMPT=$'$date_time'
export RPROMPT=""


precmd() {
set_prompt
}

0 comments on commit b665a07

Please sign in to comment.