Commit Graph

1045 Commits (4421869b85d6c35f33f655f79ba622e75c863448)

Author SHA1 Message Date
Daniel de Sá ea67ae228c
docs: add readline install for arch (#60) 2021-06-09 14:38:04 -04:00
sammyette e37abcb08b
feat: define preload file in var
same as before, enables changing at compile time
2021-06-08 21:00:31 -04:00
sammyette be5ebd6ada
feat: add back cancel input on ctrl c 2021-06-08 21:00:01 -04:00
sammyette 86dbb97cae
feat: define lua require paths in var
this makes it able to be changed compile time, which should help
in support for systems that dont follow fhs (damn nix)
and windows as well, but that'll be first class
2021-06-08 19:16:37 -04:00
sammyette 2a084fc03e
fix: make minimal config work with new version 2021-06-08 17:40:52 -04:00
sammyette ef45bafb54
fix: remove extra newline in error message 2021-06-08 17:24:54 -04:00
sammyette f0013096fd
chore: update urls to reflect org name change 2021-06-03 19:19:22 -04:00
sammyette f6986446c0
docs: go get all modules 2021-06-03 19:18:51 -04:00
sammyette 1623f0d85d
fix: dont go interactive if not terminal (closes #48) 2021-06-01 22:14:59 -04:00
sammyette 7e970e9e81
feat: increment $SHLVL (closes #55) 2021-05-28 23:13:18 -04:00
sammyette 5408e68e19
fix: use hilbish.cwd to get cwd 2021-05-27 19:06:45 -04:00
sammyette af4b4b2ae0
feat: add hilbish.cwd function 2021-05-27 19:06:17 -04:00
sammyette ba6d7972e0
chore: merge 2021-05-27 18:34:16 -04:00
Devin Singh 9573c2732d feat: cd - changes pwd to previous one
close #53
2021-05-27 17:26:02 -05:00
sammyette c1b9e5bc81
feat: add goro function
this function will run another function, but in a goroutine
!!
2021-05-25 20:44:03 -04:00
sammyette 9defa737f4
fix!: remove recursive aliases
i dont think this is really useful and since the `args` provided
by the sh interp dont include quotes i can't split with our own
function, which is a problem
i also removed running lua code like a sh command, now its only
entire input for lua; like it was before
2021-05-25 20:05:11 -04:00
sammyette b608ea6bc8
chore: remove unused dep 2021-05-24 07:29:52 -04:00
sammyette 207f6ba719
chore: resolve merge conflicts 2021-05-24 07:26:30 -04:00
sammyette dc09bae6e4
chore: update hilbiline url to reflect org name change 2021-05-24 07:09:24 -04:00
sammyette 2230b8bd45
chore: update deps (mainly hilbiline) 2021-05-23 22:01:09 -04:00
sammyette a88850357e
chore: merge from master 2021-05-21 21:11:41 -04:00
sammyette 7aa9fb9fe6
docs: shorten/simplify build steps 2021-05-20 19:21:28 -04:00
sammyette 459606618c
docs: add that precompiled binaries are provided, more details in install 2021-05-20 19:11:07 -04:00
sammyette 1f3162fc4f
ci: set fetch depth to 0 2021-05-20 18:48:16 -04:00
sammyette 439930a653
ci: upload artifact of compiled binary 2021-05-20 18:36:36 -04:00
sammyette 9e5dbfc7e0
ci: use latest go version 2021-05-20 18:31:30 -04:00
sammyette 571764a87f
ci: just build instead of trying to make release 2021-05-20 18:29:32 -04:00
sammyette c277c67786
ci: use build_flags instead 2021-05-20 18:19:54 -04:00
sammyette 35c0a0d386
ci: experiment with slightly changed build file - say hi again 2021-05-20 18:18:14 -04:00
sammyette aadb5f373c
chore(ci): removed github action - say goodbye to ci 2021-05-20 18:10:50 -04:00
sammyette 88f750f546
ci: go back to old action file 2021-05-20 18:08:55 -04:00
sammyette bbec5c3c14
ci: fix syntax errors 2021-05-20 18:06:56 -04:00
sammyette 92f9e51a15
chore(ci): use spaces instead of tabs 2021-05-20 18:05:56 -04:00
sammyette d3989e09ed
ci: use matrix.os for runs-on 2021-05-20 18:04:29 -04:00
sammyette b9864ce4c6
ci: try to build for linux only and install readline before 2021-05-20 18:03:28 -04:00
sammyette fd32275f70
ci: add github actions workflow to build on commit 2021-05-20 17:47:22 -04:00
sammyette e86c95818a
fix: added a return in lua command check 2021-05-20 05:36:00 -04:00
sammyette 08a3e75fd1
fix: check for lua defined commands before going to sh interp (mvdan/sh#705) 2021-05-19 18:39:56 -04:00
sammyette d4a595d2a8
feat: run lua in sh interp exec handler 2021-05-19 18:38:15 -04:00
sammyette 9f1ad83c51
feat: print on unhandled err case for fs.cd 2021-05-19 17:00:23 -04:00
sammyette 14e6ae5a3c
feat: add command.not-found hook 2021-05-18 21:04:49 -04:00
sammyette a655ff00ce
feat: use custom exec handler for sh interpreter
so, here we use a custom function for the sh interpreter to run
individual commands now. what does this mean?
1. aliases will work not only on the 1st command, since it was
replaced in the beginning before.
want to run `cmd; alias`? now you can!
2. custom error message when a command isnt found :} i can also
add the command.not-found hook (will do in next commit)
3. sh and lua can be mixed (not in this commit, but itll work)

this means all code for handling commands is in the single `execCommand`
function in shell.go and will probably able to clean things up soon,
ditching the `RunInput` function entirely
2021-05-18 20:49:55 -04:00
sammyette aa7de15997
chore(deps): update dependencies 2021-05-18 20:40:41 -04:00
sammyette aeac0ccce0
build: add link flags -s and -w to build 2021-05-17 19:38:53 -04:00
sammyette f31c1296ae
docs: add additional build instructions 2021-05-17 19:37:53 -04:00
sammyette 3a673e2a9b
build: add other stuff to .PHONY 2021-05-17 19:22:58 -04:00
sammyette 03eefdc02e
build: build-dev -> dev, add hilbiline 2021-05-17 19:04:20 -04:00
sammyette e0851809ab
feat: make readline agnostic, add hilbiline to test 2021-05-17 19:03:56 -04:00
sammyette 1ff3ff854b
fix: add input to history before alias expansion
since im stupid, normal commands that are aliased add
the expanded version to the history, and not the alias itself.
lua alias was added since im dumb and did `input` instead of `cmdString`
so now, history is handled once, in main.go
2021-05-16 20:09:47 -04:00
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