This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Prints and copies to the clipboard the SVN URL of the current working | |
# directory or the first command line argument | |
# by @westonruter; use of awk and tr thanks to @josh_wnj | |
if [ $# == 0 ]; then | |
cwd=`pwd` | |
else | |
cwd="$1" | |
fi |