summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <programble@gmail.com>2015-11-02 15:39:55 -0500
committerJune McEnroe <programble@gmail.com>2015-11-02 15:39:55 -0500
commit2f6d92c67e1a43478969bf2d150f1a0bf246dbb3 (patch)
treebd8a73226b1e77b5b98648cac50c5c97e0420da5
parentAdd chruby to zshrc (diff)
downloadsrc-2f6d92c67e1a43478969bf2d150f1a0bf246dbb3.tar.gz
src-2f6d92c67e1a43478969bf2d150f1a0bf246dbb3.zip
Newline before prompt and start at bottom of terminal
-rw-r--r--.zshrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index ce6d6d82..d8a3ffbe 100644
--- a/.zshrc
+++ b/.zshrc
@@ -36,9 +36,13 @@ _prompt_git_branch() {
       ;;
   esac
 }
-PROMPT='%{%(?.$fg[green]$_prompt_ssh_color.$fg[red])%}»%{$reset_color%} '
+PROMPT='
+%{%(?.$fg[green]$_prompt_ssh_color.$fg[red])%}»%{$reset_color%} '
 RPROMPT='%{$fg[blue]%}%-50<…<%~%{$fg[yellow]%}$(_prompt_git_branch)%{$reset_color%}'
 
+# Place first prompt at bottom of window.
+tput cup "$(($LINES - 2))"
+
 # Set title to directory name at prompt, prefixed with hostname over SSH. Add
 # current command to title while running.
 _title() {