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 | |
# | |
# Links files in this directory to the current users home directory. | |
# | |
# If the link already exists the file will be skipped unless the -f flag is given. | |
real_path () { | |
_=`pwd` | |
[ -d $DIR ] && DIR=$1 | |
[ -f $DIR ] && DIR=`dirname $1` |