forked from colonelpanic/dotfiles
6 lines
193 B
Bash
6 lines
193 B
Bash
|
readlink_command='readlink'
|
||
|
command -v greadlink > /dev/null && readlink_command="greadlink"
|
||
|
function dotfiles_abspath() {
|
||
|
echo "$(${readlink_command} -f "$BASH_SOURCE" | xargs dirname)"
|
||
|
}
|