Permalink
Browse files

Adding canonicalise function to .bashrc

  • Loading branch information...
markhepburn committed Aug 27, 2010
1 parent f1d8b7c commit a85b72f76fad0218e3e297bf04308773f1a7f52b
Showing with 7 additions and 0 deletions.
  1. +7 −0 .bashrc
View
@@ -154,5 +154,12 @@ function fix_ssh_agent() {
unset SOCKFILE
}
+function canonicalise {
+ local dirpart=`dirname $1`
+ cd $dirpart && pwd -P
+}
+# used in scripts, so we export this:
+export -f canonicalise
+
export PATH

0 comments on commit a85b72f

Please sign in to comment.