Created
June 18, 2021 05:13
-
-
Save pn11/ffa24e46863fdc56ffeaab1e314ec3dc to your computer and use it in GitHub Desktop.
Do not open Emacs in VSCode Terminal
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 | |
if [ $TERM_PROGRAM = 'vscode' ]; then | |
code $* | |
else | |
exec emacsclient -t -a "" $* | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment