aboutsummaryrefslogtreecommitdiff
path: root/get_dotfiles_location.sh
diff options
context:
space:
mode:
Diffstat (limited to 'get_dotfiles_location.sh')
-rwxr-xr-xget_dotfiles_location.sh6
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")")