Coder Social home page Coder Social logo

support for fish shell about k HOT 6 CLOSED

supercrabtree avatar supercrabtree commented on July 25, 2024 1
support for fish shell

from k.

Comments (6)

reduxionist avatar reduxionist commented on July 25, 2024 2

You'll want to make sure there's not much (if anything) in your .profile, .zprofile, and .zshrc so that this is quick (and you'll obviously need zsh installed).

The --no-rcs option (short flag is "-f"), lets you work-around runcoms who haven't been sticking to their diets lately by instructing zsh to parse only the global zshenv and skip all the rest... (There's also a no-glboal-rcs but I find the bloat is usually my own so have little use for it in this context at least.)

from k.

OldhamMade avatar OldhamMade commented on July 25, 2024 2

@JayTheMarketer If it helps, I've reimplemented k as a binary (in Nim) which you can build/install from here: http://github.com/OldhamMade/ll

It's not 100% feature complete (some sorting options require some changes in the upcoming release of Nim), but I'm using it on a daily basis on macOS without any problems.

from k.

calebmeyer avatar calebmeyer commented on July 25, 2024 1

This isn't a perfect solution to this problem (since it has to reload everything every time, it's fairly slow), but if you think of zsh scripts like python/ruby/node scripts, it makes sense:

Define a new function/alias (you can use the builtins funced and funcsave) with this in it:

function k --description 'List contents of directory, like ls but better'
	zsh -c ". /path/to/supercrabtree/k/k.sh; k $argv"
end

You'll want to make sure there's not much (if anything) in your .profile, .zprofile, and .zshrc so that this is quick (and you'll obviously need zsh installed).

@supercrabtree would you be interested in a PR to add this to the readme?

from k.

supercrabtree avatar supercrabtree commented on July 25, 2024

Hey, I don't really have time to do this. But if you get a chance to reimplement what is here for fish shell I will happily link to that version in the docs.

from k.

JayTheMarketer avatar JayTheMarketer commented on July 25, 2024

Again, nowhere near a perfect solution (or really any solution), but...

There is another package implemented via a ruby gem (and therefore shell agnostic) called athityakumar/colorls that provides ls with fontawesome icons and also includes git status.

My current function is

function k
    colorls --long --almost-all --sort-dirs --git-status $argv
end

I know this solves nothing in the long run because I do prefer the real k, but it works in a pinch until we can port it over to fish.

from k.

bdmorin avatar bdmorin commented on July 25, 2024

Define a new function/alias (you can use the builtins funced and funcsave) with this in it:

function k --description 'List contents of directory, like ls but better'
	zsh -c ". /path/to/supercrabtree/k/k.sh; k $argv"
end

This worked brilliantly, no fuss, no muss.

from k.

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.