diff --git a/bin/tmux-hosts b/bin/tmux-hosts index d6ec465..3c5c31f 100755 --- a/bin/tmux-hosts +++ b/bin/tmux-hosts @@ -85,7 +85,7 @@ if [ "$(basename $0)" == "tmux-hosts" ]; then tmuxHosts $(ansible -i "$inventory" --list-hosts "$group"\ | grep -v hosts\ \( \ | sed 's/\s\+//g' \ - | if [ $offset -gt 0 ]; then head -n -"${offset}"; else cat; fi \ + | if [ $offset -gt 0 ]; then tail -n +"${offset}"; else cat; fi \ | head -n 4 \ | tr '\n' ' ') fi