Skip to content

Commit

Permalink
simple PS1 prompt for emacs
Browse files Browse the repository at this point in the history
  • Loading branch information
mperdikeas committed Dec 24, 2014
1 parent 5ddb570 commit 7f0c59e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ case "$TERM" in xterm*|rxvt*)
esac

# Keep it simple if running in emacs (see: http://unix.stackexchange.com/questions/61836/emacs-shell-mode-m-x-shell)
#case "$TERM" in
# xterm-256color)
# PROMPT_COMMAND=
# PS1="\u@\h:\W$ "
#esac
case "$TERM" in
xterm-256color)
PROMPT_COMMAND=
PS1="[\u@\h:\w]$ "
esac

# Alias definitions.
# You may want to put all your additions into a separate file like
Expand Down
2 changes: 1 addition & 1 deletion .emacs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@
(autoload 'stringtemplate-mode "stringtemplate-mode" "StringTemplate editing mode" t)
)

(if nil ;; doesn't seem to be working: http://unix.stackexchange.com/questions/61836/emacs-shell-mode-m-x-shell
(if nil ;; doesn't seem to be working: http://unix.stackexchange.com/a/77360/24044
(eval-after-load 'shell
'(progn
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
Expand Down

0 comments on commit 7f0c59e

Please sign in to comment.