Created
January 4, 2016 12:34
-
-
Save lotka/de33a0cb846204aa6bb8 to your computer and use it in GitHub Desktop.
Set a favourite directory
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
# Store the location of your favourite directory | |
alias fa='echo $(echo $(pwd) | sed "s:^$HOME:~:") > ~/Dropbox/.lastWorkDir' | |
# Go to your favourite directory | |
alias f='cd $(cat ~/Dropbox/.lastWorkDir | sed "s:^~:$HOME:")' | |
# Sed is used to make this work on all the computers I use |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment