Add shell function to show most recent suspended job

pull/2/head
Bodaniel Jeanes 2011-11-14 14:24:50 -06:00
parent c402054b1f
commit 92b0d459ce
1 changed files with 8 additions and 0 deletions

View File

@ -17,3 +17,11 @@ function user_at_host() {
echo $str
}
function prompt_bg_job() {
if [ "$CURRENT_SHELL" = "zsh" ]; then
jobs | grep '+' | awk '{print $4}'
else
jobs | grep '+' | awk '{print $3}'
fi
}