I started thinking about ways to do things a bit d...
# kash_shell
c
I started thinking about ways to do things a bit differently and leverage Kotlin to automate certain commands that I type very often. A few ideas: -
ps("foo")
would show all the processes that contain the string
"foo"
in them -
find("bar")
same as
find . -name \*bar\*
-
find("bar", dirOnly = true)
self explanatory
e
c
@ethauvin I'm still wondering if aliases are necessary in Kash at all since you can just define Kotlin functions for these
e
@cedric aliases don't require parenthesis like fun do, that's about it.
c
@ethauvin Kotlin aliases don't either, they can be
val
!
👍🏻 1