Coder Social home page Coder Social logo

Comments (11)

dufferzafar avatar dufferzafar commented on May 21, 2024

@gotbletu Have a look at this: https://github.com/dufferzafar/cheat

It's a go fork of cheat, that I created specifically for the colored output.

from cheat.

gotbletu avatar gotbletu commented on May 21, 2024

yea i would of used that Go version but they dont got a search option but this python version does =)

from cheat.

liambeguin avatar liambeguin commented on May 21, 2024

Hi,

I use vimcat

function __cheat() {                
if [ $# == 1 ]; then                
    cheat $1 | vimcat -c 'set ft=sh'
else                                
    cheat $@                        
fi                                  
}                                   
alias cheat=__cheat

from cheat.

gotbletu avatar gotbletu commented on May 21, 2024

@liambeguin Thanks ill give that a try

from cheat.

 avatar commented on May 21, 2024

@liambeguin
Thanks for this! im having issue with the function: __cheat:1: = not found, any idea?

from cheat.

liambeguin avatar liambeguin commented on May 21, 2024

Hi,
is the __cheat() function in your bashrc ?

from cheat.

 avatar commented on May 21, 2024

im using zsh but yes, i made it work with just the cheat $1 | vimcat -c 'set ft=sh', but instead of ansi colors i get codes :P

from cheat.

liambeguin avatar liambeguin commented on May 21, 2024

hum... I'm not very familiar with zsh but I remember having issues with the colors.
is your TERM variable correctly set ?

from cheat.

 avatar commented on May 21, 2024

yeah, i think ill move to xterm, i've been having issues with colors. thanks man, dont want to waste more of your time. cheers

from cheat.

chrisallenlane avatar chrisallenlane commented on May 21, 2024

Generally speaking, I think the syntax highlighting would work fine for nearly all cheatsheets provided that we defaulted to using a sh syntax highlighter. I don't recall what we're doing off the top of my head (I haven't dug into this codebase in a while), but perhaps that would be an easy change.

I'll try to take a look at that this week - unless somebody wants to beat me to the punch with a PR ;)

from cheat.

chrisallenlane avatar chrisallenlane commented on May 21, 2024

Color seem OK on my system, so I'm going to assume that @sogseal's local configuration may have been a contributing factor. @sogseal (or anyone else) - if you continue to have trouble on your new terminal, feel free to re-open this ticket. Thanks!

from cheat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.