Created
February 4, 2022 15:44
-
-
Save tommorris/da935263f4a401740f232d55606a93f9 to your computer and use it in GitHub Desktop.
use emacs projectile known projects list for command line project switching
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 | |
# alias in your zshrc as | |
# alias prj="source ~/bin/_prj" | |
DIR=`cat ~/.emacs.d/.local/cache/projectile.projects | sed 's/" "/\n/g' | sed 's/[\"\(\)]//g' | fzf | xargs -n 1 python -c 'import os, sys; print(os.path.expanduser(sys.argv[1]))'` | |
cd $DIR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment