Created
February 12, 2015 10:30
-
-
Save kidpixo/801109b8a9e5246fc346 to your computer and use it in GitHub Desktop.
Simple fswatch-er to trigger the checklist each time a file change (for check_list_simplenote see gist https://gist.github.com/kidpixo/9df8fc3298dfe84dc176)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fswatch -rx $checklist_path | while read event | |
set actual_pane_width (tmux list-panes | grep '(active)' | sed 's/^.: \[\(.*\)x.*/\1/') | |
# actual_pane_width + 11 take in account invisible ASCII escape characters | |
# used for color in check_list_simplenote | |
check_list_simplenote | cut -c 1-(echo $actual_pane_width"+11" | bc) | |
repeat = $actual_pane_width | |
repeat \n 5 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment