Skip to content

Instantly share code, notes, and snippets.

@kristjan
Created February 11, 2012 01:27
Show Gist options
  • Save kristjan/1794970 to your computer and use it in GitHub Desktop.
Save kristjan/1794970 to your computer and use it in GitHub Desktop.
Print a green line before running ack for easy scrollback
#!/bin/bash
function lack() {
echo -ne "\033[32m"
for i in $(seq $(tput cols)); do echo -n "="; done
echo -e "\033[0m"
ack $@
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment