Skip to content

Commit

Permalink
Pos: Remove non-functional cdf command
Browse files Browse the repository at this point in the history
Closes Homebrew#7799.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
  • Loading branch information
dsanson authored and Sharpie committed Sep 24, 2011
1 parent 43a504c commit 9883e3c
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Library/Formula/pos.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,19 @@ class Pos < Formula
md5 'c667fb4ca38c96494f888ade9fb4e40a'
homepage "http://sage.ucsc.edu/~wgscott/xtal/wiki/index.php/Unix_and_OS_X:_The_Absolute_Essentials"

def cdf_script; <<-END
#!/bin/bash
cd "$(posd)"
END
end

def install
bin.install %w[bin/fdc bin/posd]
(bin+'cdf').write cdf_script
share.install %w[Finder_Toolbar_Applications.dmg.gz iTerm.webloc]
end

def caveats
<<-EOS.undent
cdf (change terminal window to current finder window)
needs to be installed as an alias in your shell init.
For example, add the following to your .bash_profile:
if [ -f `brew --prefix`/bin/posd ]; then
alias cdf='cd "`posd`"'
fi
EOS
end
end

0 comments on commit 9883e3c

Please sign in to comment.