PS1="\[\033]0;\w\007\]"
if [[ "$TERM" == *color ]]; then
- PS1+=$'\r' # carriage return
+# PS1+=$'\r' # carriage return
PS1+="\[$userStyle\]\u" # username
PS1+="\[$reset$fg\] at "
PS1+="\[$hostStyle\]\h" # host
PS1+=$'\n' # newline
PS1+="\[$reset$fg\]\$ \[$reset\]" # $ (and reset color)
- PS2="\[${yellow}\]âÂ\86Â\92 " # `âÂ\86Â\92`
+ PS2="\[${yellow}\]-> "
PS2+="\[${reset}\]" # reset color
else # no colors
PS1+=$'\r' # carriage return
PS1+="\u at \h in \w on \$(__git_ps1 %s)"
PS1+=$'\n''\$ ' # newline and $
- PS2="âÂ\86Â\92 "
+ PS2="-> "
fi
export PS1 PS2
# Use vi keybindings for everything that uses readline.
set editing-mode vi
-set show-mode-in-prompt on
+# Prompt will be prefixed with a `+` while in insert mode and a `:` when in command mode
+#set show-mode-in-prompt on
# Adds punctuation as word delimiters
set bind-tty-special-chars off
set completion-ignore-case on
set show-all-if-ambiguous on
set show-all-if-unmodified on
-"\es": menu-complete
set mark-symlinked-directories on
set match-hidden-files off
set page-completions on
set keymap vi-command
"gg": beginning-of-history
"G": end-of-history
- "k": history-search-backward
- "j": history-search-forward
+ "p": history-search-backward
+ "n": history-search-forward
# "\e[C": forward-char
# "\e[D": backward-char
-
+
set keymap vi-insert
"\C-l": clear-screen
"\C-w": backward-kill-word
"\eOR": "stepi\n"
$endif
+"\es": menu-complete
+
# Useful stuff for UTF-8
set meta-flag on
set input-meta on