Skip to content

Instantly share code, notes, and snippets.

@bradobro
Last active January 18, 2017 19:39
Show Gist options
  • Save bradobro/506634a57be8e87269aeec11a6771fcc to your computer and use it in GitHub Desktop.
Save bradobro/506634a57be8e87269aeec11a6771fcc to your computer and use it in GitHub Desktop.
Fish functions for watching files with less
# You can use `funced` to edit these or just run this script.
# If you want them there for you next time, be sure to `funcsave` them
function lessq --description 'View github.com/y0ssar1an/q go debug logs'
set fname {$TMPDIR}q
echo 'q.Q watcher help: ^C to browse, F to resume following' > $fname
less -R +F $fname
end
function lessw --description 'Like tail -f but with less powers. ^C to scroll and search. F to resume watching.' --argument fname
less -R +F $fname
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment