(color-theme-initialize)
(color-theme-subtle-hacker)))
+;; multi-term
+(autoload 'multi-term "multi-term"
+ "Create new term buffer.
+Will prompt you shell name when you type `C-u' before this command." t)
+
;; auto-complete
(require-if-present 'auto-complete-config)
(if (featurep 'auto-complete-config)
[[ -n "$SSH_CONNECTION" ]]
}
+function _we_are_in_emacs () {
+ [[ -n "$INSIDE_EMACS" ]]
+}
+
_prompt_base='%B[%n@%m] %{%(?.$fg[green].$fg[red])%}%#%{$reset_color%}%b '
if ( _we_are_in_gnu_screen ); then
# GNU Screen has a capability to set its window title by "ESC k
compinit
# End of lines added by compinstall
-if ( _we_are_in_gnu_screen ); then
+if _we_are_in_gnu_screen; then
# When we are in a GNU Screen session...
- if ( _we_are_in_ssh_session ); then
+ if _we_are_in_ssh_session; then
# Propagate remote session's bells to the local one.
screen -X vbell off
fi
else
- if [ -e ".motd" ]; then
- cat ".motd"
+ if _we_are_in_emacs; then
+ # Without this, Emacs' term mode has trouble with backspaces.
+ export TERM=vt100
fi
# Run "fortune" if we aren't in a GNU Screen session.