Permalink
Browse files

fixed path; added trash() function

  • Loading branch information...
1 parent 76968c9 commit 5f30e07a70013e546544a76ad4f51755a490ffe1 @oleganza committed Sep 21, 2011
Showing with 9 additions and 1 deletion.
  1. +1 −0 common/path.sh
  2. +8 −1 desktop/work.sh
View
@@ -1,5 +1,6 @@
# All possible system-wide "bin" paths
#export PATH="/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:$PATH"
+export PATH="/usr/local/bin:$PATH"
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
View
@@ -1,2 +1,9 @@
alias ru='touch tmp/restart.txt' # stands for 'rack up': reloads rack (merb) app
-alias xcode='open *.xcodeproj'
+alias xcode='open *.xcodeproj'
+
+function trash {
+for b in "$@"
+do
+osascript -e "tell app \"Finder\" to delete POSIX file \"${PWD}/$b\"" 1>/dev/null
+done
+}

0 comments on commit 5f30e07

Please sign in to comment.