Permalink
Browse files

bashrc with rake_completion stolen from josh/dotfiles, html5vid script

  • Loading branch information...
1 parent df2c0f1 commit 632cfd8cd42e81c48a176061e584eb2159bda433 @waymondo committed Feb 5, 2013
Showing with 53 additions and 13 deletions.
  1. +8 −0 bash/rake_completion
  2. +1 −13 bash_profile
  3. +44 −0 bashrc
  4. 0 {bash → bin}/html5vid.sh
View
8 bash/rake_completion 100644 → 100755
@@ -1,3 +1,11 @@
+#!/usr/bin/env ruby
+
+# to install, add the following line to your .bash_profile or .bashrc
+# complete -C path/to/rake_completion -o default rake
+
+# Rake completion will return matching rake tasks given typed text. This way
+# you can auto-complete tasks as you are typing them by hitting [tab] or [tab][tab]
+# This also caches the rake tasks for optimium speed
class RakeCompletion
CACHE_FILE_NAME = '.rake_tasks~'
View
@@ -1,13 +1 @@
-# set en_US locale w/ utf-8 encodings
-LANG="en_US.UTF-8"
-LANGUAGE="en"
-LC_CTYPE="en_US.UTF-8"
-LC_ALL="en_US.UTF-8"
-export LANG LANGUAGE LC_CTYPE LC_ALL
-
-EDITOR="emacs"
-
-complete -C ~/.bash/rake_completion -o default rake
-
-export PATH="$HOME/.rbenv/bin:/usr/local/share/npm/bin:$PATH"
-eval "$(rbenv init -)"
+source ~/.bashrc
View
44 bashrc
@@ -0,0 +1,44 @@
+# set en_US locale w/ utf-8 encodings
+LANG="en_US.UTF-8"
+LANGUAGE="en"
+LC_CTYPE="en_US.UTF-8"
+LC_ALL="en_US.UTF-8"
+export LANG LANGUAGE LC_CTYPE LC_ALL
+
+EDITOR="emacs"
+
+CDPATH=".:$HOME:$HOME/code"
+
+# history
+HISTFILE="$HOME/.history"
+HISTSIZE=10000
+SAVEHIST=10000
+HISTFILESIZE=10000
+HISTCONTROL="ignoreboth"
+
+# clean prompt
+PS1="\[$(tput setaf 5)\]\w \$ \[$(tput sgr0)\]"
+
+# cd
+function cd () {
+ builtin cd "$@" > /dev/null
+}
+
+# aliases
+alias ..='cd ../'
+alias ll='ls -Al'
+alias g='git'
+alias e='open -a Emacs.app'
+alias emacs='/usr/local/bin/emacs'
+alias be='bundle exec'
+
+# cached rake completion
+complete -C ~/.bash/rake_completion -o default rake
+
+# path
+export PATH="$HOME/.rbenv/bin:/usr/local/share/npm/bin:/Applications/Postgres.app/Contents/MacOS/bin:/usr/local/heroku/bin:$PATH"
+
+# rbenv
+eval "$(rbenv init -)"
+
+export PATH="$(brew --prefix josegonzalez/php/php54)/bin:$PATH"
File renamed without changes.

0 comments on commit 632cfd8

Please sign in to comment.