mirror of https://github.com/bjeanes/dotfiles.git
Add shell function to show most recent suspended job
parent
c402054b1f
commit
92b0d459ce
|
@ -17,3 +17,11 @@ function user_at_host() {
|
||||||
|
|
||||||
echo $str
|
echo $str
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function prompt_bg_job() {
|
||||||
|
if [ "$CURRENT_SHELL" = "zsh" ]; then
|
||||||
|
jobs | grep '+' | awk '{print $4}'
|
||||||
|
else
|
||||||
|
jobs | grep '+' | awk '{print $3}'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue