-
-
Save gugod/42b372d5d62ac426eae8d9cdfa6e9400 to your computer and use it in GitHub Desktop.
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
function e { | |
local file="$1" | |
if [[ ! -f $file ]]; then | |
if [[ ${file[0,2]} == "a/" || ${file[0,2]} == "b/" ]]; then | |
file=${file[3,$#file]} | |
fi | |
fi | |
if [[ ! -f $file ]]; then | |
echo "No such file: $1"; | |
return; | |
fi | |
emacsclient -n $file | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment