Created
January 18, 2019 15:20
-
-
Save bencord0/7034a7cbcfe764aac64c1039decf2318 to your computer and use it in GitHub Desktop.
cd into the directory of this script (bash-5 edition)
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 | |
cd "$(dirname "$(readlink -f "${BASH_ARGV0}")")" | |
echo "${PWD}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment