summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2015-11-02 15:39:55 -0500
committerJune McEnroe <june@causal.agency>2015-11-02 15:39:55 -0500
commitb64a37a2d575ac8dfa691fca1d90a82834bb865d (patch)
tree39b87baeaf3e620cfc80298c23474dad61d31a33
parentAdd chruby to zshrc (diff)
downloadsrc-b64a37a2d575ac8dfa691fca1d90a82834bb865d.tar.gz
src-b64a37a2d575ac8dfa691fca1d90a82834bb865d.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() {