mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:06:44 +00:00
chore(emacs): update emacs shell setup
This commit is contained in:
@@ -5,8 +5,9 @@
|
||||
# macOS systems
|
||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
if [ -f "/Applications/Emacs.app/Contents/MacOS/Emacs" ]; then
|
||||
alias emacsgui="env TERM=screen-24bit /Applications/Emacs.app/Contents/MacOS/Emacs"
|
||||
alias emacs="env TERM=screen-24bit /Applications/Emacs.app/Contents/MacOS/Emacs -nw"
|
||||
export EMACS="/Applications/Emacs.app/Contents/MacOS/Emacs"
|
||||
alias emacsgui="env TERM=screen-24bit $EMACS"
|
||||
alias emacs="env TERM=screen-24bit $EMACS -nw"
|
||||
fi
|
||||
|
||||
if [ -f "/Applications/Emacs.app/Contents/MacOS/bin/emacsclient" ]; then
|
||||
@@ -14,7 +15,11 @@ if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# Linux systems
|
||||
if [[ "$OSTYPE" == "linux"* ]]; then
|
||||
alias emacs="env TERM=screen-24bit emacs -nw"
|
||||
alias emacsclient="env TERM=screen-24bit emacsclient"
|
||||
fi
|
||||
|
||||
# add doom-emacs' bin directory to path if it exists
|
||||
path_prepend "$HOME/.config/doom-emacs/bin"
|
||||
|
||||
Reference in New Issue
Block a user