Last active
December 27, 2015 06:59
-
-
Save gregmalcolm/7285930 to your computer and use it in GitHub Desktop.
Unix Shell aliases for "bookmarking" a project dir and returning to it on demand
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
#!/bin/bash | |
# 'Save' the folder name | |
alias hhh='echo $PWD > ~/.projectdir' | |
# Return to the project folder | |
alias hh='projectdir=$(cat ~/.projectdir) && cd $projectdir' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment