Permalink
Browse files

GREP_OPTIONS, more aliases, minor tweaks

  • Loading branch information...
1 parent 24b7bf8 commit 59969298d423316bdcc36381643439b2c26118c6 sshaw committed Mar 29, 2013
Showing with 15 additions and 6 deletions.
  1. +1 −0 bash_profile
  2. +14 −6 bashrc
View
@@ -2,6 +2,7 @@
[ -s ~/.bashrc ] && source ~/.bashrc
export PS1="\w >"
+export GREP_OPTIONS=--color
export RI=-fansi
export RUBYOPT=rubygems
export EDITOR="emacs --no-init"
View
20 bashrc
@@ -15,14 +15,15 @@ alias pinstall='pbuild && make install'
alias pb='perlbrew'
alias pd='perldoc'
-alias ll=' ls -l'
-alias lr=' ls -lt | head'
-
+alias ll=' ls -lh'
alias fxml='xmllint --format'
alias vxsd='xmllint --noout --schema'
alias vrng='xmllint --noout --relaxng' # Trang is much better for this...
-alias gd='git diff'
+alias gd=' git diff'
+alias gs=' git status'
+alias gc='git commit' # Never did use `gc`
+alias gp='git pull'
shopt -s cdspell cdable_vars cmdhist extglob histappend no_empty_cmd_completion
@@ -88,6 +89,13 @@ canspell()
[ -n "$*" ] && { echo $@ | aspell -a | grep '^&'; } && return 1 || return 0;
}
+# ls recent
+# usage: lr [DIR]
+lr()
+{
+ ls -lt "$@" | head
+}
+
# usage: newmod [PATTERN]
# `less -F` no good on Dariwn
newmod()
@@ -126,8 +134,8 @@ rake()
if [ -f "./.components" ]; then
bundle exec padrino 'rake' "$@"
elif [ -f "./Gemfile" -a -f "./Rakefile" ]; then
- bundle exec 'rake' "$@"
- else
+ bundle exec 'rake' "$@"
+ else
"$r" "$@"
fi
}

0 comments on commit 5996929

Please sign in to comment.