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 | |
# Usage: cdup [DIRNAME] | |
# Bash shortcut function to cd you to ancestor directory named as first argument. | |
# If DIRNAME is not supplied, then .. is used. | |
# Stop having to cd ../../../.. | |
# Use `cd -` to undo, to restore old working directory. | |
# Use aliases for common directories, like: alias docroot="cdup docroot". | |
# Add function to your ~/.profile | |
# | |
# Example: |
NewerOlder