🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

fish-cat-highlighted

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fish-cat-highlighted

Fish script that adds automatic syntax highlighting to cat

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

fish-cat-highlighted

Fish script that adds automatic syntax highlighting for files being printed with cat.

/t/demo âť©  cat sort.hs
sort :: Ord a => [a] -> [a]
sort [] = []
sort (pivot : rest) = sort lessEqual ++ [pivot] ++ sort greater
                      where lessEqual = filter (<= pivot) rest
                            greater = filter (pivot <) rest

If standard input or output stream is redirected or file type not recognized, regular cat fires instead.

/t/demo âť©  cat sort.hs |cat
sort :: Ord a => [a] -> [a]
sort [] = []
sort (pivot : rest) = sort lessEqual ++ [pivot] ++ sort greater
                      where lessEqual = filter (<= pivot) rest
                            greater = filter (pivot <) rest
/t/demo âť©  cat (printf "Hello!\n" |psub)
Hello!

Prerequisites

Supported languages

source-highlight --lang-list

Install

npm

or simply put the script to your ~/.config/fish/functions/ or source it elsewise.

License

MIT

Keywords

fish

FAQs

Package last updated on 27 Feb 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts