dotfiles/resources/bootstrapping.sh

6 lines
209 B
Bash
Raw Normal View History

2014-04-14 21:49:44 -06:00
readlink_command='readlink'
command -v greadlink > /dev/null && readlink_command="greadlink"
function dotfiles_abspath() {
2014-05-01 19:11:18 -06:00
echo "$(${readlink_command} -f "$BASH_SOURCE" | xargs dirname | xargs dirname)"
2014-04-14 21:49:44 -06:00
}