diff options
Diffstat (limited to 'get_dotfiles_location.sh')
| -rwxr-xr-x | get_dotfiles_location.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/get_dotfiles_location.sh b/get_dotfiles_location.sh new file mode 100755 index 0000000..98bebde --- /dev/null +++ b/get_dotfiles_location.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +# see: +# http://stackoverflow.com/questions/59895/can-a-bash-script-tell-which-directory-it-is-stored-in + +echo $(dirname "$(readlink -f "$0")") |
