Last active
January 18, 2017 19:39
-
-
Save bradobro/506634a57be8e87269aeec11a6771fcc to your computer and use it in GitHub Desktop.
Fish functions for watching files with less
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
# 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