Releases: acook/lister
Releases · acook/lister
v0.1.2
v0.1.1
Fixes:
- Rebuilding allows
lister
to run on newer Homebrewed macOS systems.
Changes:
- Removed workarounds for Crystal's fixed IO issues with pipes and terminal state
- Updated to use newer API for libmagic wrapper
- Updated to use newer API for wrapping OS errors
- Eat "not a directory" errors so that it doesn't crash when passing in a single file
- Internal API changes when using Themer support library
v0.1.0 - Initial release
Think of this version as mostly a color-coded variant of the file
command that works on directories.
The binary size disparity between OSes is because the Linux version is fully statically compiled so it will run on pretty much any modern Linux, while the MacOS version cannot be statically compiled due to OS limitations.
Installation
Just put it in your $PATH
or copy one of the below quickstart snippets! (they assume you downloaded the files to ~/Downloads
)
MacOS Quickstart
Newer versions of macOS do not include all of the dependencies. You can remedy this easily with Homebrew:
brew install pcre libmagic
sudo ln -s /usr/local/share/misc/magic.mgc /usr/share/misc/magic.mgc
Install it somewhere in your PATH
as usual:
cd ~/Downloads
chmod +x lister.static.macos_x86_64
sudo mv lister.static.macos_x86_64 /usr/bin/lister
echo "alias l=lister" >> ~/.zshrc
alias l=lister
Linux Quickstart
(will also install the libmagic database if it doesn't already exist and you've downloaded it)
cd ~/Downloads
[[ -f magic.mgc && ! -f /usr/share/misc/magic.mgc ]] && sudo mkdir -p /usr/share/misc && sudo mv magic.mgc /usr/share/misc/magic.mgc
chmod +x lister.static.linux_x86_64
sudo mv lister.static.linux_x86_64 /usr/bin/lister
echo "alias l=lister" >> ~/.bash_profile
alias l=lister