prompt always at bottom
authorpatrick nsukami <ndkpatt@gmail.com>
Sat, 23 Apr 2016 14:22:14 +0000 (14:22 +0000)
committerpatrick nsukami <ndkpatt@gmail.com>
Sat, 23 Apr 2016 14:22:14 +0000 (14:22 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index d1eeaba..d87aa70 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -121,6 +121,7 @@ tmux list-sessions 2> /dev/null
 
 # always put prompt at bottom
 # PS1="\[$(tput cup "$LINES")\]"$PS1
+PS1='\[$(retval=$?;tput cup "$LINES";exit $retval)\]'$PS1
 
 # Hook for desk activation
 [ -n "$DESK_ENV" ] && source "$DESK_ENV"