Last active
December 27, 2015 10:29
-
-
Save stormbrew/7311138 to your computer and use it in GitHub Desktop.
This file contains 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
# Changes to directory passed in $1 and runs the command specified | |
# by the remaining arguments. | |
function cdo() { | |
at=${1} | |
shift | |
( # enter a subshell to perform the action | |
cd "${at}" | |
"$@" | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment