Skip to content

Instantly share code, notes, and snippets.

@gregmalcolm
Last active December 27, 2015 06:59
Show Gist options
  • Save gregmalcolm/7285930 to your computer and use it in GitHub Desktop.
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
#!/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