Comments (6)
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.
@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.
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.
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.
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.
Define a new function/alias (you can use the builtins
funced
andfuncsave
) 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)
- How to separate folders and files HOT 2
- Compatability with WARN_CREATE_GLOBAL zsh option HOT 4
- M
- .
- Suggest to install coreutils when running '-h' flag
- setopt globdots
- 。
- http://www.apache.org/licenses/LICENSE-2.0 HOT 1
- test
- Installation from source - better instruction HOT 1
- Directory colors are missing HOT 1
- Use custom colours for branch names in repos HOT 1
- Zbavte sa skrytých bankových výdavkov!
- CPA_00U91RUA7Z
- new release
- hau
- Permission denied when cloning manually HOT 5
- Appoint Contributors HOT 2
- Can't see directories colors on MacOS HOT 2
- efining function based on alias `pkill' and parse error near `()' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from k.