sammyette
12828d197a
feat: add hilbish.flag function
...
this checks if a certain flag has been passed to hilbish
2021-05-16 18:10:46 -04:00
sammyette
4b2891b503
fix: use new way to get username in default config
2021-05-16 17:40:55 -04:00
sammyette
ef1ced4a04
refactor: make `hilbish` an already required module and add run function
...
idk how to explain this man
in code `hilbish` is now a module, which can also be required like
others. but it is already a global export as the variable of the same
name.
also
2021-05-16 17:13:28 -04:00
sammyette
c6aa5fa387
fix: remove unneeded struct tag
2021-05-16 16:18:46 -04:00
sammyette
88e117974e
chore: add todo comment for exec function
2021-05-16 16:17:55 -04:00
sammyette
e29ba6a0d5
feat!: move username and version access to hilbish table
...
instead of having ugly `_user` and `_ver` variables,
`hilbish.user` and `hilbish.version` is used
2021-05-16 15:53:21 -04:00
sammyette
9415c5193e
feat(wip): check if lua input is incomplete
2021-05-16 15:50:49 -04:00
sammyette
0850247615
feat: recursively alias commands
2021-05-16 09:32:02 -04:00
sammyette
415e66ab9c
fix: trim prefix of alias instead of trim
2021-05-16 09:29:39 -04:00
sammyette
ad14b98b1f
feat: lua code can now be aliased
2021-05-16 08:43:19 -04:00
sammyette
83591f9bba
fix: tryrun input from -c only if its provided
2021-05-16 08:42:20 -04:00
sammyette
83bcb35dcf
fix: remove unused imports
2021-05-16 06:58:48 -04:00
sammyette
dfb8ec9a90
fix: remove unused function
2021-05-16 06:55:11 -04:00
sammy
b86912be56
chore: change default version to be latest release
2021-05-15 23:13:15 -04:00
sammy
4ce223e2f4
fix: dont make continued input spaced out
...
basically, if i had something like
> here i want to \
complete
it would return "here i want to complete"
so now it doesnt anymore, if you want the space, do it manually
2021-05-15 22:25:29 -04:00
sammy
0afca3d4f6
fix: dont append to path if dir is already there ( resolves #52 )
2021-05-15 22:23:21 -04:00
sammy
2c2eb8d69a
chore: remove old commented code
2021-05-15 09:21:19 -04:00
sammy
83a44954cd
fix(revert): feat: write errors and panics to tmp log file
...
This reverts commit 1e1b9d07b0
.
why did i even do this in the first place
2021-05-15 09:04:27 -04:00
sammy
1e1b9d07b0
feat: write errors and panics to tmp log file
2021-05-15 07:32:25 -04:00
sammy
da6a4aa70f
chore: add build-dev to Makefile
...
this builds hilbish with a version including the latest git commit.
2021-05-14 06:22:20 -04:00
sammy
69c0ccc807
fix: make `version` a var
...
so now, it can be changed in compile time
2021-05-13 21:02:56 -04:00
sammy
bb7f9e45f0
chore: bump version
2021-05-12 06:42:43 -04:00
sammy
edd45e4182
fix: resplit input on alias
...
this makes it so itll properly check if the aliased *command* is
defined in lua
therefore, cd with an argument can be aliased now
2021-05-12 06:40:30 -04:00
sammy
f9c1eced68
chore: bump version
2021-05-11 19:39:51 -04:00
sammy
fd478e883f
feat: args variable ( resolves #49 )
...
anytime hilbish is ran as shebang or given a script to run,
itll provide an `args` variable which will be the args a user
provides to the script.
it includes the execute path, as most argv's do
2021-05-11 19:37:00 -04:00
sammy
0f9d3732fb
fix: check if type assertion of return value is valid
2021-05-11 19:00:07 -04:00
sammy
accd4beeba
fix(cd): return err code of fs.cd instead of 1 specifically
2021-05-11 18:57:54 -04:00
sammy
a140db1610
fix(cd): make it return 1 exit code on err
2021-05-11 18:55:22 -04:00
sammy
630d7dde9c
fix: prefer to run preload in cwd first
2021-05-11 18:55:05 -04:00
sammy
0ddfc5bea0
feat: allow command defined by commander to return exit code
2021-05-11 18:53:24 -04:00
sammy
cc995e0f34
chore: bump version
2021-05-11 18:52:49 -04:00
sammy
05f5bbcfdd
fix: add -c description
2021-05-11 18:19:53 -04:00
sammy
0acae37704
chore: revert "fix: reordering init code [...]"
...
this reverts commit 8d5e36bcde
.
apparently, when i reordered the code it caused hilbish's history
to be emptied and not work when used interactively
i literally have no idea why
2021-05-11 18:12:58 -04:00
sammy
8f94990fc3
feat: add exec function
...
this is basically the `exec` "command" in sh
itll replace hilbish with whatever provided
simple usage:
exec 'sleep 100'
2021-05-08 11:50:09 -04:00
sammy
1bacbfc778
fix: correct description for -n
2021-05-08 09:30:32 -04:00
sammy
8d5e36bcde
fix: reorder init code, making hilbish faster when used non-interactively
2021-05-08 09:30:14 -04:00
sammy
941902f43b
style: remove unneeded assign to _
2021-05-08 09:12:21 -04:00
sammy
cdd9dc1544
chore: merge from master
2021-05-08 08:57:16 -04:00
sammy
e6382d454d
feat: add -n flag ( closes #47 )
2021-05-08 08:56:24 -04:00
Jim Tittsler
70a9e471eb
fix: typo in README ( #46 )
2021-05-03 06:20:52 -04:00
sammy
6bb2a2f8c8
chore: make login message use less lines in code
2021-05-01 16:28:43 -04:00
sammy
8242e0bfc9
fix: use lunacolors instead of ansikit
2021-05-01 16:18:11 -04:00
sammy
69883c6b73
docs: add --recursive flag to git clone
2021-05-01 16:07:39 -04:00
sammy
4d38b913f1
feat: add lunacolors library
2021-05-01 16:05:02 -04:00
sammy
32dea836d5
fix!: remove format function from ansikit
...
BREAKING CHANGE: this function has been moved to
Lunacolors. Hilbish users will now be using that
separate library for colors, while ansikit will be for
other terminal codes and things
2021-05-01 16:01:42 -04:00
sammy
6e3f1e1b97
fix: add additional lua import path
2021-05-01 15:56:08 -04:00
sammy
c43aab6a60
fix: make appendPath expand ~ to home dir
2021-05-01 15:35:43 -04:00
sammy
9934ba417f
chore: bump to 0.4
2021-05-01 14:57:20 -04:00
sammy
a75100d15d
feat: add _user variable
...
this will probably change to a better global var in the
future, but it's `_user` now.
this provides a simple, guaranteed way of getting the
current user's name
$USER (in?)correctly shows the previous user when
`su` is used, _user will always be root in this case
2021-05-01 14:51:57 -04:00
sammy
60b1b50bb3
feat: add multiline hook ( resolves #19 )
2021-05-01 14:25:58 -04:00