Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding canonicalise function to .bashrc

  • Loading branch information...
commit a85b72f76fad0218e3e297bf04308773f1a7f52b 1 parent f1d8b7c
@markhepburn authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 .bashrc
View
7 .bashrc
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.